SWRA772 august 2023 CC2564C
The EnableSCOnly command enables LE Secure Connections (SC) only mode. In case this mode is enabled, pairing request from peers that support legacy pairing only is rejected. Please note that in case this mode is enabled, the SC flag in the LE_Parameters must be set to TRUE. This function returns zero on successful execution and a negative value on all errors.
This command requires one parameter which indicates if Secure connections only mode is set or not. 0 = SC Only mode is off, 1 = SC Only mode is on.
GAP_LE_SC_Only_Mode(BluetoothStackID, EnableSCOnly)
int BTPSAPI GAP_LE_SC_Only_Mode (unsigned int BluetoothStackID, Boolean_t EnableSCOnly)
The following function is provided to allow a configuration of LE Secure Connecions only mode. The upper layer uses this function before the beginning of LE SC pairing, in case the function asks to reject a device that supports only a legacy pairing. This mode can be used when it is more important for a device to have high security than for the device to maintain backwards compatibility with devices that do not support SC. This function accepts as parameters the Bluetooth stack ID of the Bluetooth device, and a boolean EnableSCOnly that enable or disable the SC only mode. This function is used once, before the first pairing process. This function returns zero if successful or a negative error code.