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.

Events generated

This API is called during pairing procedure, please see the events generated of BLE_SMP_InitiatePairing.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] p_oobDataPointer 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 valueDescription
MBA_RES_SUCCESSSuccessfully replied with passkey for pairing process.
MBA_RES_FAILThe specified connection handle is invalid.
MBA_RES_BAD_STATEThe OOB data for Secure Connections if requested. It should call BLE_SMP_ScOobDataReply to reply OOB data.