ble_gap_terminate

int
ble_gap_terminate(
    uint16_t conn_handle,
     uint8_t hci_reason
)

Description

Terminates an established connection.

Parameters

ParameterDescription
conn_handleThe handle corresponding to the connection to terminate.
hci_reasonThe HCI error code to indicate as the reason for termination.

Returned values

ValueCondition
0Success.
BLE_HS_ENOTCONNThere is no connection with the specified handle.
Core return codeUnexpected error.