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
topicstringThe topic of the received message.
messagebyte[]The data of the received message.
dupFlagboolA value indicating whether the message is a duplicate delivery.
qosLevelMqttQoSLevelThe Quality of Service (QoS) level of the message.
retainboolA 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
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
Retain
Gets a value indicating whether the message should be retained by the broker.
public bool Retain { get; }
Property Value
Topic
Gets the topic of the received message.
public string Topic { get; }