Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLEDevice class

rssi()

Description

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());
  }

See Also



Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.