android 蓝牙notify 不能获取值,这是咋回事,是不是的bug

发布于 8 年前作者 nadu6637 次浏览最后编辑 8 年前来自 ask

android 蓝牙notify  不能获取值,这是咋回事,是不是的bug


wx.notifyBLECharacteristicValueChange({

 state: true, // 启用 notify 功能  // 这里的 deviceId 需要在上面的 getBluetoothDevices 或 onBluetoothDeviceFound 接口中获取  deviceId: deviceId,  // 这里的 serviceId 需要在上面的 getBLEDeviceServices 接口中获取  serviceId: serviceId,  // 这里的 characteristicId 需要在上面的 getBLEDeviceCharacteristics 接口中获取  characteristicId: characteristicId,  success: function (res) {    console.log('notifyBLECharacteristicValueChange success', res.errMsg)  } })
0 回复
暂无回复