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')
}
})
试试wx.startBluetoothDevicesDiscovery设置allowDuplicatesKey为false