ArduinoBLE - BLE.connected()

Query if another Bluetooth® Low Energy device is connected

Syntax

BLE.connected()

Parameters

None

Returns

  • true if another Bluetooth® Low Energy device is connected,
  • otherwise false.

Example


    // while the central is still connected to peripheral:
    while (BLE.connected()) {

       // ...
    }