wx.offBluetoothDeviceFound 不执行
发布于 4 年前 作者 lzheng 12922 次浏览 来自 官方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 回复

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

回到顶部