readRssi method
Read the RSSI value of this connected device.
Returns the current RSSI value in dBm. This value indicates the signal strength between the device and the connected peripheral. Lower (more negative) values indicate weaker signal, while higher (less negative) values indicate stronger signal.
Note: The device must be connected before reading RSSI.
Throws BleShieldNativeException if:
- The device is not connected
- Reading RSSI fails
Implementation
Future<int> readRssi() => BleShieldNative.readRssi(deviceId);