startBeaconDiscovery用IOS取到的RSSI值,一直为0
发布于 4 年前 作者 weiwan 15168 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)在IPhone6、IPhone7下取到的RSSI值始终为0,,安卓下正常
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo:

const app = getApp();

var beaconsUUID = [“11111111-1111-1111-1111-111111111109”, “11111111-1111-1111-1111-111111111102”, “11111111-1111-1111-1111-111111111107”, “11111111-1111-1111-1111-111111111106”, “11111111-1111-1111-1111-111111111103”, “11111111-1111-1111-1111-111111111104”, “11111111-1111-1111-1111-111111111105”, “11111111-1111-1111-1111-111111111108”, “11111111-1111-1111-1111-111111111110”,

“11111111-1111-1111-1111-111111111111”, “11111111-1111-1111-1111-111111111113”,

“11111111-1111-1111-1111-111111111114”];

Page({

onLoad: function () {

wx.startBeaconDiscovery({

uuids: beaconsUUID,

success(res) {

wx.onBeaconUpdate((res) => {

console.log(res)

})

},

fail(res) {

}

})

}

})

3 回复

麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

想询问一下楼主,现在还是这样吗?

你指的是 accuracy ?

回到顶部