BLE_SMP_ScOobDataReply
C
uint16_t BLE_SMP_ScOobDataReply(uint16_t connHandle, uint8_t *p_confirm, uint8_t *p_rand);
Description
Sends OOB data for LE Secure Connections pairing in response to an OOB data request.
Note
This function should be invoked from the SMP callback function upon receiving the BLE_SMP_EVT_INPUT_SC_OOB_DATA_REQUEST event, which occurs when the OOB authentication method is used during LE Secure Connections pairing.
Events generated
Refer to the events generated by BLE_SMP_InitiatePairing for the pairing procedure context.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] p_confirm | A pointer to the Confirm Value. If the local device cannot provide this information, set this to NULL. The Confirm Value should be a 16-byte value. |
[in] p_rand | A pointer to the Random Number. If the local device cannot provide this information, set this to NULL. The Random Number should be a 16-byte value. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully replied with the OOB data for pairing process. |
MBA_RES_FAIL | The specified connection handle is invalid. |
MBA_RES_BAD_STATE | The OOB data for Legacy pairing if requested. It should call BLE_SMP_OobDataReply to reply OOB data. |