Bluetooth Framework C++ Edition

◆ SetEncryption()

void SetEncryption ( const bool  Value)

Sets the encryption state of the connection.

Parameters
ValueTrue if the connection is encrypted. False otherwise.

If an application changes the property when connection is active the wclEBluetoothServer exception raises.

The Encryption can be turned on (True) only if the Authentication property is also set to True.

Exceptions
wclEBluetoothServer
wclEInvalidArgument