ArduinoBLE - BLE.disconnect()

Disconnect any Bluetooth® Low Energy devices that are connected

Syntax

BLE.disconnect()

Parameters

None

Returns

  • true if any Bluetooth® Low Energy device that was previously connected was disconnected,
  • otherwise false.

Example


  if (BLE.connected()) {
    

    BLE.disconnect();
  }