riot_sys

Function ble_gap_terminate

Source
pub unsafe extern "C" fn ble_gap_terminate(
    conn_handle: u16,
    hci_reason: u8,
) -> c_int
Expand description

Terminates an established connection.

@param conn_handle The handle corresponding to the connection to terminate. @param hci_reason The HCI error code to indicate as the reason for termination.

@return 0 on success; BLE_HS_ENOTCONN if there is no connection with the specified handle; Other nonzero on failure.