TlsProtocols property
Gets or sets the TLS version. Read/write.
Syntax
connOption
.TlsProtocols
where
connOption
- is an MQTTConnectOption object created by the MQTTFactory object's method CreateConnectOption
.Default value
If this property is omitted, it will use its default value, which is
TlsProtocolDefault
, meaning the highest possible TLS version supported by both client and server.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.
Provide Feedback