ble_gap_terminate() function
Terminates an established connection.
Arguments
conn_handle
The handle corresponding to the connection to terminate.
hci_reason
The HCI error code to indicate as the reason for termination.
Return value
0 on success; BLE_HS_ENOTCONN if there is no connection with the specified handle; Other nonzero on failure.
Examples
ble_gap_terminate() is referenced by 9 libraries and example projects: