qcloud-iotexplorer-h5-panel-sdk
Advanced tools
Comparing version 1.1.19-beta.1 to 1.1.19-beta.2
{ | ||
"name": "qcloud-iotexplorer-h5-panel-sdk", | ||
"version": "1.1.19-beta.1", | ||
"version": "1.1.19-beta.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/release/qcloud-iotexplorer-h5-panel-sdk", |
@@ -674,2 +674,13 @@ # qcloud-iotexplorer-h5-panel-sdk | ||
#### deviceAdapter.readBLECharacteristicValue({ serviceId, characteristicId }); | ||
* serviceId?: string; 可选,默认为主服务id | ||
* characteristicId: string; 需要读取的特征值id,默认会取主服务下的第一个read特征值 | ||
接口读取到的信息需要在 onBLECharacteristicValueChange 方法注册的回调中获取。具体参考[官方文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.readBLECharacteristicValue.html)。 | ||
#### deviceAdapter.getBLEDeviceRSSI() | ||
获取蓝牙设备的信号强度。 | ||
#### deviceAdapter.notifyBLECharacteristicValueChange({ characteristicId?: string; serviceId?: string; state?: boolean }) => Promise<void> | ||
@@ -727,2 +738,3 @@ | ||
* connectDevice 支持不自动处理订阅特征值notify | ||
* 增加readBLECharacteristicValue、getBLEDeviceRSSI 方法 | ||
@@ -729,0 +741,0 @@ ### v1.1.18(2020.9.21) |
Sorry, the diff of this file is too big to display
205429
684
785