求指导,使用onnectedBluetoothDevices想获取已配对已连接的蓝牙设备
iOS端能正常获取,安卓端已配对且已联上的设备无法列表。
已开启定位权限。
console.log('---openBluetoothAdapter---');
wx.openBluetoothAdapter({
success: function (res) {
console.log('---初始化蓝牙适配器状态---');
console.log(res);
//test
console.log("getConnectedBluetoothDevices")
wx.getConnectedBluetoothDevices({
services: ['1812'],// "0x180A", "0x180F", "0x1812"//00001812-0000-1000-8000-00805F9B34FB
success(res) {
console.log(res)
}
})
}
})
基础框架2.66也试过
你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点
微信号:ctvsyuling
上传时间:2019.05.06 约16:53
@娇华 能帮忙看看不?
开发那边已经在定位了哈,有结果会回复哈
看了下日志没有看到连接上的日志噢?再确认下?thx
求正确解决方式?