SWRA772 august 2023 CC2564C
The LEUserConfirmationResponse command is responsible for issuing a GAP LE Authentication Response with a user confirmation value specified via the input parameter. This function returns zero on successful execution and a negative value on all errors.
This command requires one parameter which indicates if confirmation is accepted or not. 0 = decline, 1 = accept.
GAP_LE_Authentication_Response(BluetoothStackID, CurrentLERemoteBD_ADDR, &GAP_LE_Authentication_Response_Information)
int BTPSAPI GAP_LE_Authentication_Response(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR, GAP_LE_Authentication_Response_Information_t*GAP_LE_Authentication_Information)
The following function is provided to allow a mechanism for the local device to respond to GAP LE authentication events. This function is used to set the authentication information for the specified Bluetooth device. This function accepts as input, the Bluetooth protocol stack ID followed by the remote Bluetooth device address that is currently executing apairing/authentication process, followed by the authentication response information. This function returns zero if successful, or a negative return error code if there is an error.