1.2.2.1.4.4.11 BLE_SMP_OobDataReply
C
uint16_t BLE_SMP_OobDataReply(uint16_t connHandle, uint8_t *p_oobData);
Description
Send the OOB data for pairing process. The API should be called in response to OOB data request. Hence, it should be called in SMP callback function when BLE_SMP_EVT_INPUT_OOB_DATA_REQUEST event is generated. These events are received only when OOB method is selected for Legacy pairing.
Note
If event BLE_SMP_EVT_INPUT_OOB_DATA_REQUEST is received then the OOB data may be generated by application.
Events generated
This API is called during pairing procedure, please see the events generated of BLE_SMP_InitiatePairing.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] p_oobData | Pointer to the OOB data. Set NULL if local device cannot provide the information. The length of OOB data should be 16 bytes key value. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully replied with passkey for pairing process. |
MBA_RES_FAIL | The specified connection handle is invalid. |
MBA_RES_BAD_STATE | The OOB data for Secure Connections if requested. It should call BLE_SMP_ScOobDataReply to reply OOB data. |