5.3.4.7 Disconnect Link (K,1[,<hex16>])

Format: K,1

Use command K 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 K,1, to disconnect a particular link.

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

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