Skip to main content

MqttClientSetting Class

NuGet: GHIElectronics.TinyCLR.Networking.Mqtt
Assembly: GHIElectronics.TinyCLR.Networking.Mqtt
Namespace: GHIElectronics.TinyCLR.Networking.Mqtt

Transport-level MQTT settings — broker host/port, TLS, certificates.

public class MqttClientSetting

Properties

BrokerName

public string BrokerName { get; set; }

The host name or address of the MQTT broker.

BrokerPort

public int BrokerPort { get; set; }

The TCP port of the MQTT broker.

CaCertificate

public X509Certificate CaCertificate { get; set; }

The certificate authority certificate used to validate the broker.

ClientCertificate

public X509Certificate ClientCertificate { get; set; }

The client certificate presented to the broker for mutual TLS.

SslProtocol

public SslProtocols SslProtocol { get; set; }

The TLS protocol to use, or None for an unencrypted connection.