Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLE class

rssi()

Description

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

Syntax

BLE.rssi()

Parameters

None

Returns

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

Example


  if (BLE.connected()) {
    // …

    Serial.print(“RSSI =);
    Serial.println(BLE.rssi());
  }

See Also




Reference Home

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.