onBluetoothDeviceFound 监听为什么会返回两条相同数据?
wx.onBluetoothDeviceFound((res) => {
res.devices[0].RSSI = BlueTooth.max(0, res.devices[0].RSSI + 100)
res.devices[0].advertisData = BlueTooth.ab2hex(res.devices[0].advertisData).slice(4, 16)
if (res.devices[0].advertisData == mac) {
this.stopBluetoothDevicesDiscovery()
console.log(res.devices[0].advertisData, mac,res.devices[0].deviceId ,‘xxxxx’)
}
})