MqttTlsProtocols constants
The version of TLS protocols.
TlsProtocol12
(3072) - The TLS version is 1.2.TlsProtocol13
(12288) - The TLS version is 1.3.TlsProtocolDefault
(15360) - The highest possible TLS version supported by both client and server. The supported TLS versions are 1.2 and 1.3.During MQTT communication, the used TLS version is negotiated between the client and server. The TLS version should be supported by both the client and server. For example, if both the client and server support TLS version 1.2 and 1.3, then version 1.3 will be used for the communication. If either the client or server only supports TLS version 1.2, then version 1.2 will be used for the communication.
Default value
If no constant is specified, it will use its default value, which is
TlsProtocolDefault
.Provide Feedback