Table of Contents

Class MqttMsgPublishEventArgs

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

Represents the event arguments for a PUBLISH message received from the broker.

public class MqttMsgPublishEventArgs : EventArgs
Inheritance
MqttMsgPublishEventArgs
Inherited Members
Extension Methods

Constructors

MqttMsgPublishEventArgs(string, byte[], bool, MqttQoSLevel, bool)

Initializes a new instance of the MqttMsgPublishEventArgs class with the specified parameters.

public MqttMsgPublishEventArgs(string topic, byte[] message, bool dupFlag, MqttQoSLevel qosLevel, bool retain)

Parameters

topic string

The topic of the received message.

message byte[]

The data of the received message.

dupFlag bool

A value indicating whether the message is a duplicate delivery.

qosLevel MqttQoSLevel

The Quality of Service (QoS) level of the message.

retain bool

A value indicating whether the message should be retained by the broker.

Properties

DupFlag

Gets a value indicating whether the message is a duplicate delivery.

public bool DupFlag { get; }

Property Value

bool

Message

Gets the data of the received message.

public byte[] Message { get; }

Property Value

byte[]

QosLevel

Gets the Quality of Service (QoS) level of the message.

public MqttQoSLevel QosLevel { get; }

Property Value

MqttQoSLevel

Retain

Gets a value indicating whether the message should be retained by the broker.

public bool Retain { get; }

Property Value

bool

Topic

Gets the topic of the received message.

public string Topic { get; }

Property Value

string