ArduinoBLE - disconnect()

Disconnect the BLE device, if connected

Syntax

bleDevice.disconnect()

Parameters

None

Returns

true if the BLE device was disconnected, otherwise false.

Example


 // listen for BLE centrals to connect:
  BLEDevice central = BLE.central();

  

  central.disconnect();