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.

Parameters

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