ArduinoBLE - rssi()

Query the RSSI (Received signal strength indication) of the BLE device.

Syntax

bleDevice.rssi()

Parameters

None

Returns

The RSSI of the connected BLE device, 127 if the BLE device is not connected.

Example


  if (bleDevice.connected()) {
    

    Serial.print(RSSI = );
    Serial.println(bleDevice.rssi());
  }