经本人实测,订阅特征值后收不到改变的特征值。
另外,uni-app中hello项目里面的蓝牙例子中的读特征值程序中,在订阅特征值成功和监听特征值变化成功之间会出错,这是怎么回事?
出错信息如下:
10:26:11.879 notifyBLECharacteristicValueChange success:notifyBLECharacteristicValueChange:ok at pages\tabbar\connect\connect.vue:611
10:26:11.899 {"errMsg":"notifyBLECharacteristicValueChange:ok"} at pages\tabbar\connect\connect.vue:612
10:26:11.919 thirdScriptError
10:26:11.939 Invalid array length argument;undefined
10:26:11.959 Uint8Array@[native code]
10:26:11.979 wt@weex createInstanceContext:4:178110
10:26:11.999 weex createInstanceContext:4:96038
10:26:12.019 weex createInstanceContext:4:211189
10:26:12.039 weex createInstanceContext:4:419620
10:26:12.059 weex createInstanceContext:4:174710
10:26:12.079 weex createInstanceContext:3:58549
10:26:12.099 weex createInstanceContext:3:25607
10:26:12.119 weex service:3:136663
10:26:12.139 callbackFromNative@weex service:3:16689
10:26:12.159 eval code
10:26:12.179 eval@[native code]
10:26:12.199 weex service:3:15681
10:26:12.219 consume@(weex framework):1:1383
10:26:12.239 map@[native code]
10:26:12.259 监听低功耗蓝牙设备的特征值变化事件成功 at pages\tabbar\connect\connect.vue:583
0 个回复