BluetoothWriteData 方法 (String, Byte, ComponentOnResultHandler) |
发送经典蓝牙信息
命名空间:
Smobiler.Plugins
程序集:
Smobiler.Plugins (在 Smobiler.Plugins.dll 中) 版本:6.0.651.17422+acac930a389332bc36ed645b22d5419d24641df7
语法public void WriteData(
string macAddress,
byte[] data,
ComponentOnResultHandler handler = null
)
Public Sub WriteData (
macAddress As String,
data As Byte(),
Optional handler As ComponentOnResultHandler = Nothing
)
参数
- macAddress
- 类型:SystemString
发送的经典蓝牙设备地址(IsReset为false时有效) - data
- 类型:SystemByte
需要发送给经典蓝牙设备的数据 - handler (Optional)
- 类型:Smobiler.Core.ControlsComponentOnResultHandler
发送蓝牙信息后触发
参见