readRssi method

Future<int> readRssi(
  1. String deviceId
)

读取远端设备 RSSI。

参数:

  • deviceId:已连接设备标识,无默认值。Android/iOS/macOS 都需要设备处于已连接状态; Web Bluetooth 不公开 RSSI,会抛出不支持错误;Linux/Windows 返回最近一次扫描缓存的 广播 RSSI,未缓存时返回 0

Implementation

Future<int> readRssi(String deviceId) {
  throw UnimplementedError('readRssi() has not been implemented.');
}