Table of Contents

Struct MqttPublishOptions

Namespace
Pamoja.Mqtt
Assembly
Pamoja.Mqtt.dll

How one message is published.

public readonly record struct MqttPublishOptions : IEquatable<MqttPublishOptions>
Implements
Inherited Members

Constructors

MqttPublishOptions(Qos?, bool)

How one message is published.

public MqttPublishOptions(Qos? Qos = null, bool Retain = false)

Parameters

Qos Qos?

The quality of service for this message, or null for the client's.

Retain bool

Whether the broker keeps it for clients that subscribe later. An empty retained message clears the one the broker holds.

Properties

Qos

The quality of service for this message, or null for the client's.

public Qos? Qos { get; init; }

Property Value

Qos?

Retain

Whether the broker keeps it for clients that subscribe later. An empty retained message clears the one the broker holds.

public bool Retain { get; init; }

Property Value

bool