颤动:从iBeacon广播信号中获取蓝牙RSSI值

时间:2018-04-14 06:07:16

标签: dart flutter

有没有办法可以使用Flutter读取广播iBeacon RSSI值(不与信标配对)?

1 个答案:

答案 0 :(得分:0)

有一个library,可让您获取任何发现的蓝牙设备的RSSI。示例代码:

var subscription = flutterBlue.scanResults.listen((scanResult) {
  // do something with scan result
  device = scanResult.device;
  print('${device.name} found! rssi: ${scanResult.rssi}');
});