pub unsafe extern "C" fn ble_gap_security_initiate(
conn_handle: u16,
) -> c_int
Expand description
Initiates the GAP security procedure.
Depending on connection role and stored security information this function will start appropriate security procedure (pairing or encryption).
@param conn_handle The handle corresponding to the connection to secure.
@return 0 on success; BLE_HS_ENOTCONN if the there is no connection with the specified handle; BLE_HS_EALREADY if an security procedure for this connection is already in progress; Other nonzero on error.