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.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] p_oobDataA 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 valueDescription
MBA_RES_SUCCESSOOB data sent successfully.
MBA_RES_FAILThe specified connection handle is invalid.
MBA_RES_BAD_STATEThe function was called for Secure Connections pairing. Use BLE_SMP_ScOobDataReply instead.