startBluetoothDevicesDiscovery传services参数不执行蓝牙回调

发布于 7 年前作者 qiujing10985 次浏览最后编辑 7 年前来自 ask

https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.startBluetoothDevicesDiscovery.html

startBluetoothDevicesDiscovery传services参数不执行蓝牙回调 wx.onBluetoothDeviceFound 接收不到消息,试了5款android 手机都接收不到消息,去掉services uuids值可以执行回调接收蓝牙但是当蓝牙过多的场景接收到的有效蓝牙就很少或者没有

1 回复
gongfang
gongfang1 楼5 年前

可以用wx.openBluetoothAdapter

文档解释另一个可能会被淘汰