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