nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_mgmt_conn_disconnect()

int bt_mgmt_conn_disconnect ( struct bt_conn *  conn,
uint8_t  reason 
)

Disconnect from a remote device or cancel the pending connection.

Parameters
[in]connConnection to disconnect.
[in]reasonReason code for the disconnection, as specified in HCI Error Codes, BT Core Spec [Vol 1, Part F].
Returns
0 if success, error otherwise.