1.2.2.1.4.4.10 BLE_SMP_NumericComparisonConfirmReply

C

uint16_t BLE_SMP_NumericComparisonConfirmReply(uint16_t connHandle, uint8_t outcome);

Description

Confirm the confirmation value between two devices.

Note

Only valid while pairing method is numeric comparison. (Only used for LE secure connections). The API should be called when user confirmation request event is generated (BLE_SMP_EVT_NUMERIC_COMPARISON_CONFIRM_REQUEST) If user confirmation (outcome) is Yes then Pairing continues else pairing process ends in a failure.

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] outcomeSee Confirm result. The result of user confirm.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sent user confirmation (Yes or No).
MBA_RES_INVALID_PARAOutcome is invalid (other than Yes or No). See Confirm result.
MBA_RES_FAILThe specified connection handle is invalid.