1.1.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
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] outcome | See Confirm result. The result of user confirm. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sent user confirmation (Yes or No). |
MBA_RES_INVALID_PARA | Outcome is invalid (other than Yes or No). See Confirm result. |
MBA_RES_FAIL | The specified connection handle is invalid. |