5.3.4.8 Disconnect (DISC[,<hex16>])

Format: DISC

Use command DISC to disconnect the active Bluetooth Low Energy link. The user can use it in central or peripheral devices.

The Disconnect Link command also accepts an optional parameter to effectively handle multi-link connections. In the multi-link scenario, it can assign a two-byte connection handle, following DISC, to disconnect a particular link.

If no connection handle is assigned in the command, it disconnects the last connection.

Example:DISC// Kill the active Bluetooth® Low Energy connection
DISC,0071// Disconnect the link with connection handle 0x0071
Response:AOK// Success
%DISCONNECT%,<connHandle>// Status string
Err// Syntax error or not connected