Table of Contents

Class MqttMsgPublishedEventArgs

Namespace
nanoFramework.M2Mqtt.Messages
Assembly
nanoFramework.M2Mqtt.Core.dll

Represents the event arguments for a published message.

public class MqttMsgPublishedEventArgs : EventArgs
Inheritance
MqttMsgPublishedEventArgs
Inherited Members
Extension Methods

Constructors

MqttMsgPublishedEventArgs(ushort)

Initializes a new instance of the MqttMsgPublishedEventArgs class for a published message.

public MqttMsgPublishedEventArgs(ushort messageId)

Parameters

messageId ushort

The message identifier that was published.

MqttMsgPublishedEventArgs(ushort, bool)

Initializes a new instance of the MqttMsgPublishedEventArgs class.

public MqttMsgPublishedEventArgs(ushort messageId, bool isPublished)

Parameters

messageId ushort

The message identifier.

isPublished bool

A value indicating whether the message was published.

Properties

IsPublished

Gets or sets a value indicating whether the message was published (or failed due to retries).

public bool IsPublished { get; set; }

Property Value

bool

MessageId

Gets or sets the message identifier.

public ushort MessageId { get; set; }

Property Value

ushort