补充下错误日志, 这个错误是在我启用 低功耗设备的连接功能时出现的;
启动连接功能,这个设备才能被描扫到。通过LightBlue和小程序,都是可以正常工作识别这个设备。
[{"deviceId":"49:C2:73:D7:7C:B1","name":"","RSSI":-82,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.035 TypeError: Cannot read property 'map' of null
15:40:51.157 发现的蓝牙设备:{"devices":[{"deviceId":"52:23:AD:67:E9:26","name":"","RSSI":-78,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.734 发现的蓝牙设备:{"devices":[{"deviceId":"62:1D:2B:2D:5E:A6","name":"","RSSI":-88,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.755 TypeError: Cannot read property 'map' of null
15:40:51.878 发现的蓝牙设备:{"devices":[{"deviceId":"03:90:74:27:4C:25","name":"","RSSI":-80,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.899 发现的蓝牙设备:{"devices":[{"deviceId":"45:63:A7:DC:EE:9C","name":"","RSSI":-81,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.919 TypeError: Cannot read property 'map' of null
15:40:52.043 TypeError: Cannot read property 'map' of null
15:40:52.166 发现的蓝牙设备:{"devices":[{"deviceId":"FE:70:D1:C5:49:32","name":"Mi Band 3","RSSI":-94,"localName":"Mi Band 3","advertisServiceUUIDs":["0000fee0-0000-1000-8000-00805f9b34fb"],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.194 deviceId:FE:70:D1:C5:49:32, name:Mi Band 3 at pages/center/equipments/bluetooth/add.vue:73
15:40:52.207 发现的蓝牙设备:{"devices":[{"deviceId":"59:C5:E4:7D:CA:41","name":"","RSSI":-93,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.740 TypeError: Cannot read property 'map' of null
15:40:52.863 发现的蓝牙设备:{"devices":[{"deviceId":"80:7A:BF:17:F5:C3","name":"HTC BS C3D5B4","RSSI":-100,"localName":"HTC BS C3D5B4","advertisServiceUUIDs":["0000cb00-0000-1000-8000-00805f9b34fb"]}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.883 deviceId:80:7A:BF:17:F5:C3, name:HTC BS C3D5B4 at pages/center/equipments/bluetooth/add.vue:73
15:40:52.904 TypeError: Cannot read property 'map' of null
5 个回复
DCloud_Android_zl
麻烦提供一下当前webview的版本号
查看方法:
56D2261C
WebView in io.dcloud.HBuilder (57.0.2987.132)
m***@qq.com (作者) - 80后iT老玩童
OPPO R9 Plusm A
19B2AF6F
WebView in io.dcloud.HBuilder (70.0.3538.64)
⚠ Remote browser is newer than client browser. Try
inspect fallback
if inspection fails.Hello H5+
file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/index.html
inspectinspect fallback
m***@qq.com (作者) - 80后iT老玩童
我更换了另外一个手机,也是同样的问题
Remote Target
LOCALHOST
Coolpad Y82-820
DB1AD139
WebView in io.dcloud.HBuilder (33.0.0.0)
Hello H5+
file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/index.html
inspect
操作步骤
这时是可以扫描到一些设备的 (例如:可以正确识别出小米手环等)
这时就会报(TypeError: Cannot read property 'map' of null)
在小程序中是正常的
DCloud_Android_zl
当前出问题的只有酷派这款手机和OPPO的吗?麻烦提供一下酷派和OPPO手机的安卓版本号吧。
2019-01-21 18:06
m***@qq.com (作者)
其它手机还没有试,OPPO的版本号是5.1.1, 酷派是4.4.4
2019-01-21 18:46
m***@qq.com (作者) - 80后iT老玩童
补充下错误日志, 这个错误是在我启用 低功耗设备的连接功能时出现的;
启动连接功能,这个设备才能被描扫到。通过LightBlue和小程序,都是可以正常工作识别这个设备。
[{"deviceId":"49:C2:73:D7:7C:B1","name":"","RSSI":-82,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.035 TypeError: Cannot read property 'map' of null
15:40:51.157 发现的蓝牙设备:{"devices":[{"deviceId":"52:23:AD:67:E9:26","name":"","RSSI":-78,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.734 发现的蓝牙设备:{"devices":[{"deviceId":"62:1D:2B:2D:5E:A6","name":"","RSSI":-88,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.755 TypeError: Cannot read property 'map' of null
15:40:51.878 发现的蓝牙设备:{"devices":[{"deviceId":"03:90:74:27:4C:25","name":"","RSSI":-80,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.899 发现的蓝牙设备:{"devices":[{"deviceId":"45:63:A7:DC:EE:9C","name":"","RSSI":-81,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:51.919 TypeError: Cannot read property 'map' of null
15:40:52.043 TypeError: Cannot read property 'map' of null
15:40:52.166 发现的蓝牙设备:{"devices":[{"deviceId":"FE:70:D1:C5:49:32","name":"Mi Band 3","RSSI":-94,"localName":"Mi Band 3","advertisServiceUUIDs":["0000fee0-0000-1000-8000-00805f9b34fb"],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.194 deviceId:FE:70:D1:C5:49:32, name:Mi Band 3 at pages/center/equipments/bluetooth/add.vue:73
15:40:52.207 发现的蓝牙设备:{"devices":[{"deviceId":"59:C5:E4:7D:CA:41","name":"","RSSI":-93,"localName":"","advertisServiceUUIDs":[],"advertisData":{}}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.740 TypeError: Cannot read property 'map' of null
15:40:52.863 发现的蓝牙设备:{"devices":[{"deviceId":"80:7A:BF:17:F5:C3","name":"HTC BS C3D5B4","RSSI":-100,"localName":"HTC BS C3D5B4","advertisServiceUUIDs":["0000cb00-0000-1000-8000-00805f9b34fb"]}]} at pages/center/equipments/bluetooth/add.vue:63
15:40:52.883 deviceId:80:7A:BF:17:F5:C3, name:HTC BS C3D5B4 at pages/center/equipments/bluetooth/add.vue:73
15:40:52.904 TypeError: Cannot read property 'map' of null
m***@qq.com (作者) - 80后iT老玩童
试了下Redmi 6, 问题仍然存在
2A22965E7D28
WebView in io.dcloud.HBuilder (68.0.3440.91)
Android版本 8.1.0
DCloud_Android_zl
麻烦在HBuilderX中创建一个5+APP项目,用5+项目中的蓝牙示例尝试连接一下
2019-01-22 16:31
m***@qq.com (作者)
我尝试了下,还是同样的问题和错误
2019-01-23 09:11