SWRA769 august 2023 CC2564C
The PINCodeResponse command is responsible for issuing a GAP Authentication Response with a PIN Code value specified via the input parameter. This function returns zero on asuccessful execution and a negative value on all errors. A Bluetooth Stack ID must exist before attempting to call this function. The device must also be in the middle of an on-goingPairing operation that was started by the local device or a remote device.
The PINCodeResponse command requires one parameter which is the PIN Code used for authenticating the connection. This is a string value which can be up to 16 digits long. Theinitiator of the Pairing see a message displayed during the Pairing Procedure to call this command. A responder receives a message to call this command after the initiator has putin the PIN Code.
GAP_Authentication_Response(BluetoothStackID, CurrentRemoteBD_ADDR, &GAP_Authentication_Information);
int BTPSAPI GAP_Authentication_Response(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR, GAP_Authentication_Information_t *GAP_Authentication_Information);
This function is provided to allow a mechanism for the local device to respond to GAP authentication events. This function is used to specify the authentication information for thespecified Bluetooth device. This function accepts as input, the Bluetooth protocol stack ID of the Bluetooth device that has requested the authentication action, and the authenticationresponse information (specified by the caller).