WithTls method
Connects to the broker with TLS.
Syntax
connOption
.WithTls
(Enabled
As Boolean, TlsVersion
As MqttTlsProtocols
= TlsProtocolDefault, AllowUntrustRoot
As Boolean = False)where
connOption
- is an MQTTConnectOption object created by the MQTTFactory object's method CreateConnectOption
.TlsVersion
- is a constant of the MqttTlsProtocols object.Provide Feedback