wx.offBluetoothDeviceFound 不执行

发布于 6 年前作者 lzheng13183 次浏览最后编辑 6 年前来自 issues

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

业务场景:调取 wx.onBluetoothDeviceFound() 监听获取设备的信息,然后调取 wx.createBLEConnection() 与设备建立连接后,调取 wx.offBluetoothDeviceFound() 取消监听设备信息,可是在 iOS 和 Android 端这个api 都不生效,wx.onBluetoothDeviceFound() 仍然在执行

1 回复
jiezhou
jiezhou1 楼4 年前

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html