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.
Events generated
When the SC OOB data is generated successfully, the BLE_SMP_EVT_GEN_SC_OOB_DATA_DONE event is generated.
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully start to generate the SC OOB data for pairing process. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_BUSY | Generation fail due to SMP is busy. |