SWRA770 august 2023 CC2564C
The SetConnectabilityMode command is responsible for setting the Connectability Mode of the local Device. This command returns zero on successful execution and a negative value on all errors. A Bluetooth Stack ID must exist before attempting to call this function.
This command requires only one parameter which is an integer value that represents a Discoverability Mode. This value must be specified as 0 (for Non-Connectable) or 1 (for Connectable).
GAP_Set_Connectability_Mode(BluetoothStackID, ConnectableMode)
int BTPSAPI GAP_Set_Connectability_Mode(unsigned int BluetoothStackID, GAP_Connectability_Mode_t GAP_Connectability_Mode)
This function is provided to set the connectability mode of the local Bluetooth Device specified by the Bluetooth protocol stack that is specified by the Bluetooth protocol stack ID. The second parameter specifies the connectability mode to place the local Bluetooth Device into.