Version: 1.x
Taro.onBLECharacteristicValueChange(CALLBACK)
使用方式同 wx.onBLECharacteristicValueChange
。
#
示例代码API 支持度
API | 微信小程序 | H5 | React Native |
---|---|---|---|
Taro.openBluetoothAdapter | ✔️ | ||
Taro.closeBluetoothAdapter | ✔️ | ||
Taro.getBluetoothAdapterState | ✔️ | ||
Taro.onBluetoothAdapterStateChange | ✔️ | ||
Taro.startBluetoothDevicesDiscovery | ✔️ | ||
Taro.stopBluetoothDevicesDiscovery | ✔️ | ||
Taro.getBluetoothDevices | ✔️ | ||
Taro.getConnectedBluetoothDevices | ✔️ | ||
Taro.onBluetoothDeviceFound | ✔️ | ||
Taro.createBLEConnection | ✔️ | ||
Taro.closeBLEConnection | ✔️ | ||
Taro.getBLEDeviceServices | ✔️ | ||
Taro.getBLEDeviceCharacteristics | ✔️ | ||
Taro.readBLECharacteristicValue | ✔️ | ||
Taro.writeBLECharacteristicValue | ✔️ | ||
Taro.notifyBLECharacteristicValueChange | ✔️ | ||
Taro.onBLEConnectionStateChange | ✔️ | ||
Taro.onBLECharacteristicValueChange | ✔️ |