android 蓝牙notify 不能获取值,这是咋回事,是不是的bug
发布于 6 年前 作者 nadu 6526 次浏览 来自 问答

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)  } })
回到顶部