getRssi method

int getRssi(
  1. BluetoothDevice device
)

Get the cached RSSI value of a device.

Returns the RSSI value of device. This value is cached and updated during scanning.

Implementation

int getRssi(BluetoothDevice device) {
  return _rssis[device] ?? 0;
}