Datasheet
Page 115 of 161
nRF8001 Product Specification
Revision 1.2
24.16 Disconnect (0x11)
Disconnect terminates the connection with the peer device.
See the operating mode during which this command can be used in Table 31. on page 92
. The command
will return a command response event with status ACI_STATUS_ERROR_DEVICE_STATE_INVALID
when it is used in the incorrect mode.
24.16.1 Message format
Table 54. ACI message structure for Disconnect
24.16.2 Accepted values
Table 55. Accepted values for parameters, Disconnect
24.16.3 Returned events
This command returns a CommandResponseEvent. It is then followed by a DisconnectedEvent.
Data returned in the
CommandResponseEvent is:
• Command code:
Disconnect
• Status: Success / Error code
• Response data: None
24.16.4 Bluetooth low energy procedures used
This command starts the following GAP procedures:
• Terminate Connection procedure
26
Message field/parameter
Value size
(bytes)
Data value Description
Header
Length 1 2 Packet length
Command 1 0x11
Disconnect
Content
Reason 1 Reason for connection termination
request
Parameter Data value Description
Reason
0x01 Request termination of the connection with the peer device
with the reason "Remote user terminated connection"
0x02 Request termination of the link with the peer device with the
reason "Unacceptable connection timing"
26. Bluetooth Core specification v4.0, Vol. 3, Part C (GAP), Sect. 9.3.10