获取蓝牙时调用getBLEDeviceCharacteristics出错
发布于 6 年前 作者 nxu 12718 次浏览 来自 问答

使用getBluetoothDevices和getBLEDeviceServices得到的设备ID和service ID作为参数调用getBLEDeviceCharacteristics,得到的错误信息如下:

{errMsg: “getBLEDeviceCharacteristics:fail - Instance not found”}

P.S.蓝牙设备是正常的,使用iOS原生接口可以获取characteristic信息。

运行环境为Mac模拟器;真机上使用wx.getBluetoothDevices完全获取不到蓝牙设备。

回到顶部