SWRA770 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 a successful 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-going Pairing 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. The initiator of the Pairing sees a message displayed during the Pairing Procedure to call this command. A responder receives a message to call this command after the initiator has put in 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 the specified Bluetooth Device. This function accepts as input, the Bluetooth protocol stack ID of the Bluetooth Device that has requested the authentication action, and the authentication response information (specified by the caller).