html52.com
我爱小程序-开发者交流社区

OPPO R9S 微信小程序搜索不到ble蓝牙设备

框架类型 问题类型 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:

回调有返回什么信息吗?

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付