Function esp_idf_sys::ble_gap_dev_authorization
source ยท pub unsafe extern "C" fn ble_gap_dev_authorization(
conn_handle: u16,
authorized: bool,
) -> c_int
Expand description
Authorizes or deauthorizes a BLE device for a connection.
This function updates the security flags of a BLE connection to authorize or deauthorize a device for the specified connection.
@param conn_handle The handle corresponding to the connection to authorize. @param authorized Authorized the device or not.
@return 0 on success; BLE_HS_ENOTCONN if the connection handle is not found. BLE_HS_EAUTHOR if the device is not authenticated before authorization.