BLE_SMP_GenerateScOobData

C

uint16_t BLE_SMP_GenerateScOobData(void);

Description

Generates OOB data for the next LE Secure Connections pairing process.

Note

This function should be called before initiating the pairing process and the application should wait for the BLE_SMP_EVT_GEN_SC_OOB_DATA_DONE event before starting the pairing process. It is recommended to call this function before a connection is established. The generated OOB data can be sent by the application to the remote device for pairing.

Events generated

BLE_SMP_EVT_GEN_SC_OOB_DATA_DONE is generated upon successful generation of the SC OOB data.

Return values

Return valueDescription
MBA_RES_SUCCESSInitiation of SC OOB data generation was successful.
MBA_RES_OOMFailed due to internal memory allocation failure.
MBA_RES_BUSYFailed because the SMP module is currently busy with another operation.