框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.startBluetoothDevicesDiscovery | 微信安卓客户端 | 8.0.15 | 2.20.0 |
1.开启定位服务
2.开启蓝牙开关
3.手机设置->微信应用权限管理->允许蓝牙->允许读取位置信息
4.调用wx.startBluetoothDevicesDiscovery ,wx.onBluetoothDeviceFound回调没收到任何ble设备
wx.startBluetoothDevicesDiscovery({
powerLevel: 'high',
success(_res) {
log.info('开启蓝牙搜索>成功', _res)
resolve(parse.success(action))
},
fail(_res) {
log.err('开启蓝牙搜索>失败', _res)
},
complete() {
}
})
wx.onBluetoothDeviceFound(res => {
})
5.其他信息:手机系统OPPO R9S Android6.0.1
网友回复
社区技术运营专员-CJiang:
回调有返回什么信息吗?