Function esp_idf_sys::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.