Function esp_idf_sys::ble_gap_encryption_initiate
source ยท pub unsafe extern "C" fn ble_gap_encryption_initiate(
conn_handle: u16,
key_size: u8,
ltk: *const u8,
ediv: u16,
rand_val: u64,
auth: c_int,
) -> c_int
Expand description
Initiates the GAP encryption procedure as a master. This is for testing only and should not be used by application. Use ble_gap_security_initiate() instead.
@param conn_handle The handle corresponding to the connection to start encryption. @param key_size Encryption key size @param ltk Long Term Key to be used for encryption. @param udiv Encryption Diversifier for LTK @param rand_val Random Value for EDIV and LTK @param auth If LTK provided is authenticated.
@return 0 on success; BLE_HS_ENOTCONN if the there is no connection with the specified handle; BLE_HS_EALREADY if an encryption procedure for this connection is already in progress; Other nonzero on error.