BLE_SMP_OobDataReply
C
uint16_t BLE_SMP_OobDataReply(uint16_t connHandle, uint8_t *p_oobData);
Description
Sends OOB data for 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_OOB_DATA_REQUEST event, which occurs when the OOB authentication method is used during Legacy 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_oobData | A pointer to the OOB data. If the local device cannot provide OOB data, set this to NULL. The OOB data should be a 16-byte key value. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | OOB data sent successfully. |
MBA_RES_FAIL | The specified connection handle is invalid. |
MBA_RES_BAD_STATE | The function was called for Secure Connections pairing. Use BLE_SMP_ScOobDataReply instead. |