1.1.2.1.4.4.6 BLE_SMP_GenerateScOobData

C

uint16_t BLE_SMP_GenerateScOobData();

Description

Generate the OOB data for the next LE Secure Connections pairing process. The API should be called and wait BLE_SMP_EVT_GEN_SC_OOB_DATA_DONE event before starting pairing. It's recommended to call this API before connection is established.

Note

  • The OOB data may be generated by application.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully start to generate the SC OOB data for pairing process.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_BUSYGeneration fail due to SMP is busy.