MqttConnectionSetting Class
NuGet: GHIElectronics.TinyCLR.Networking.Mqtt
Assembly: GHIElectronics.TinyCLR.Networking.Mqtt
Namespace: GHIElectronics.TinyCLR.Networking.Mqtt
Per-session MQTT settings — client ID, credentials, last-will, keepalive.
public class MqttConnectionSetting
Properties
ClientId
public string ClientId { get; set; }
The unique client identifier presented to the broker.
CleanSession
public bool CleanSession { get; set; }
Whether the broker should start a clean session rather than resume a previous one.
UserName
public string UserName { get; set; }
The user name used to authenticate with the broker.
Password
public string Password { get; set; }
The password used to authenticate with the broker.
LastWillTopic
public string LastWillTopic { get; set; }
The topic the broker publishes the last-will message to if the client disconnects unexpectedly.
LastWillQos
public QoSLevel LastWillQos { get; set; }
The quality-of-service level used for the last-will message.
LastWillMessage
public string LastWillMessage { get; set; }
The message the broker publishes if the client disconnects unexpectedly.
LastWillRetain
public bool LastWillRetain { get; set; }
Whether the broker should retain the last-will message.
KeepAliveTimeout
public int KeepAliveTimeout { get; set; }
The keep-alive interval, in seconds, between client communications.