ArduinoBLE - bleDevice.disconnect()

Disconnect the Bluetooth® Low Energy device, if connected

Syntax

bleDevice.disconnect()

Parameters

None

Returns

  • true if the Bluetooth® Low Energy device was disconnected,
  • otherwise false.

Example


 // listen for Bluetooth® Low Energy centrals to connect:
  BLEDevice central = BLE.central();

  

  central.disconnect();