蓝牙开发,在设备连接成功后,进行Notify操作时会报错10008是什么原因呢
试过各种方法都能未得到解决,我看了一下连接的结果,是支持notify的,因为项目比较急,希望能尽快帮我解答一下,十分感谢! [代码]//判断有满足条件的特征值[代码][代码]if[代码] [代码](!isnotcmm) {[代码][代码] [代码][代码]that.data.issupportwrite = res.characteristics[index].properties.write[代码][代码] [代码][代码]that.data.issupportread = res.characteristics[index].properties.read[代码][代码] [代码][代码]that.data.issupportnotify = res.characteristics[index].properties.notify[代码][代码] [代码][代码]that.data.issupportindicate = res.characteristics[index].properties.indicate[代码][代码] [代码][代码]if[代码] [代码](that.data.issupportnotify) {[代码][代码] [代码][代码]console.log([代码][代码]"支持notify"[代码][代码])[代码][代码] [代码][代码]wx.notifyBLECharacteristicValueChange({[代码][代码] [代码][代码]deviceId: equipmentId,[代码][代码] [代码][代码]serviceId: servicehuuid,[代码][代码] [代码][代码]characteristicId: characterhuuid,[代码][代码] [代码][代码]state: [代码][代码]true[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]console.log([代码][代码]"equipmentId:"[代码] [代码]+ equipmentId);[代码][代码] [代码][代码]console.log([代码][代码]"servicehuuid:"[代码] [代码]+ servicehuuid);[代码][代码] [代码][代码]console.log([代码][代码]"characterhuuid:"[代码] [代码]+ characterhuuid);[代码][代码] [代码][代码]wx.onBLECharacteristicValueChange([代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]for[代码] [代码]([代码][代码]var[代码] [代码]i = 0; i < res.value.length; i++) {[代码][代码] [代码][代码]console.log(res.value[i])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]