- this.setData有时候可以赋值成功有时候赋值不了?
[图片][图片]
07-24 - wx.onBeaconUpdate两个信标设备,一个开两米一个开五米只能搜索到开五米的信标怎么解决?
wx.startBeaconDiscovery({ uuids: beaconList, success: () => { wx.onBeaconUpdate(res => { that.processBeaconUpdate(res.beacons, rssiArray, range,userName); }); }, fail: that.handleBeaconError }); },
07-02 - 小程序的蓝牙信标的uuid信标物理硬件没有开启,而且超出距离也会被监听到?
handleBeaconDiscovery(data) { const range = data.range; const rssiArray = data.beaconList.map(uuid => ({ uuid, rssi: [], avg: 0 })); wx.startBeaconDiscovery({ uuids: data.beaconList, success: () => { wx.onBeaconUpdate(res => { console.log(222222222,res); wx.showToast({ title: '信标'+ res.beacons[0].uuid, duration: 3000 }) this.processBeaconUpdate(res.beacons, rssiArray, range); }); }, fail: this.handleBeaconError }); },
05-20