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

◆ bt_mgmt_conn_disconnect()

int bt_mgmt_conn_disconnect ( struct bt_conn * conn,
uint8_t reason )

#include <applications/nrf_audio/src/bluetooth/bt_management/bt_mgmt.h>

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.