SWRA772 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. The Connectability Mode in LE is only applicable when advertising. If a device is not advertising, then the device is not connectable. The value set by this command is used as a parameter in the command AdvertiseLE.
This command requires only one parameter which is an integer value that represents a Connectability Mode. This value must be specified as 0 (for Non-Connectable) or 1 (for Connectable).