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.
Events generated
Refer to the events generated by BLE_SMP_InitiatePairing for the pairing procedure context.
Parameters
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle associated with this connection. |
| [in] outcome | User confirmation result, where YES and NO are defined in Confirm result. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sent user confirmation (Yes or No). |
| MBA_RES_INVALID_PARA | Invalid outcome parameter (not YES or NO). |
| MBA_RES_FAIL | The specified connection handle is invalid. |
