Class MqttBrokerOptions

Assembly: redb.Route.MqttNet.dll

Options for connecting to an MQTT broker.

public sealed class MqttBrokerOptions

Inheritance

Object→MqttBrokerOptions

Properties

CleanSession

Clean session / clean start.

public bool CleanSession { get; set; }

ClientId

Client ID prefix. Final ID may include a unique suffix.

public string? ClientId { get; set; }

KeepAlive

Keep-alive interval in seconds.

public int KeepAlive { get; set; }

Password

Password for authentication.

public string? Password { get; set; }

Port

Broker port. Default 1883.

public int Port { get; set; }

Server

Broker server hostname or IP.

public string Server { get; set; }

SessionExpiryInterval

MQTT 5 Session Expiry Interval in seconds: how long the broker keeps the session after the connection closes.

public int SessionExpiryInterval { get; set; }

Username

Username for authentication.

public string? Username { get; set; }

UseTls

Enable TLS.

public bool UseTls { get; set; }