SWRA772 august 2023 CC2564C
The SetPairabilityMode command is responsible for setting the pairability mode of the local device. This command returns zero on successful execution and a negative value on all errors.
This command requires only one parameter which is an integer value that represents a pairability mode. This value must be specified as 0 (for Non-Pairable), 1 (for Pairable) or 2 (for Pairable with Secure Simple Pairing).
GAP_LE_Set_Pairability_Mode(BluetoothStackID, PairabilityMode)
int BTPSAPI GAP_LE_Set_Pairability_Mode(unsigned int BluetoothStackID, GAP_LE_Pairability_Mode_t PairableMode)
This function is provided to allow the local host the ability to change the pairability mode used by the local host. This function returns zero if successful or a negative return error code if there was an error condition.