nRF Connect SDK Bare Metal API 3.0.0-rc1
Loading...
Searching...
No Matches

◆ nrf_ble_lesc_own_oob_data_generate()

uint32_t nrf_ble_lesc_own_oob_data_generate ( void )

#include <nrf_ble_lesc.h>

Generate LESC OOB data.

Deprecated
Use nrf_ble_lesc_keypair_renew_request instead and then wait for the PM_EVT_LESC_ECC_KEYPAIR_RENEWED event. The OOB data is generated as part of the key pair renewal and can be fetched with nrf_ble_lesc_own_oob_data_get.

This function generates LESC OOB data, which can be transmitted Out-Of-Band to the peer device and used during LESC procedure. It is required to generate ECC key pair with nrf_ble_lesc_keypair_generate before calling this function.

Return values
NRF_SUCCESSIf the operation was successful.
NRF_ERROR_INVALID_STATEIf the ECC key pair hasn't been generated or is currently being generated.