BLE_SMP_NumericComparisonConfirmReply

C

uint16_t BLE_SMP_NumericComparisonConfirmReply(uint16_t connHandle, uint8_t outcome);

Description

Confirms acceptance or rejection of numeric comparison during pairing.

Note

Valid during pairing when numeric comparison is used. It should be called in response to the BLE_SMP_EVT_NUMERIC_COMPARISON_CONFIRM_REQUEST event. A positive confirmation (outcome == YES) allows pairing to continue, while a negative confirmation (outcome == NO) results in pairing failure.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] outcomeUser confirmation result, where YES and NO are defined in Confirm result.

Return values

Return valueDescription
MBA_RES_SUCCESSUser confirmation sent successfully.
MBA_RES_INVALID_PARAInvalid outcome parameter (not YES or NO).
MBA_RES_FAILThe specified connection handle is invalid.