5.3.4.8 Disconnect (DISC[,<hex16>])
Format:
DISC
Use command to disconnect the active Bluetooth Low Energy
link. The user can use it in central or peripheral devices.DISC
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 , to disconnect a particular link.DISC
If no connection handle is assigned in the command, it disconnects the last connection.
| Example: | DISC | // Kill the active Bluetooth® Low Energy connection |
| // Disconnect the link with connection handle 0x0071 | |
| Response: | AOK | // Success |
%DISCONNECT%,<connHandle> | // Status string | |
Err | // Syntax error or not connected |
