int ble_gap_terminate( uint16_t conn_handle, uint8_t hci_reason )
Terminates an established connection.
Parameter | Description |
---|---|
conn_handle | The handle corresponding to the connection to terminate. |
hci_reason | The HCI error code to indicate as the reason for termination. |
Value | Condition |
---|---|
0 | Success. |
BLE_HS_ENOTCONN | There is no connection with the specified handle. |
Core return code | Unexpected error. |