Table of Contents

Class MqttMsgSubscribeEventArgs

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

Represents the event arguments for a subscription request on topics.

public class MqttMsgSubscribeEventArgs : EventArgs
Inheritance
MqttMsgSubscribeEventArgs
Inherited Members
Extension Methods

Constructors

MqttMsgSubscribeEventArgs(ushort, string[], MqttQoSLevel[])

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

public MqttMsgSubscribeEventArgs(ushort messageId, string[] topics, MqttQoSLevel[] qosLevels)

Parameters

messageId ushort

The message identifier associated with the subscription request.

topics string[]

The topics requested to subscribe.

qosLevels MqttQoSLevel[]

The list of Quality of Service (QoS) levels requested.

Properties

MessageId

Gets the message identifier associated with the subscription request.

public ushort MessageId { get; }

Property Value

ushort

QoSLevels

Gets the list of Quality of Service (QoS) levels requested.

public MqttQoSLevel[] QoSLevels { get; }

Property Value

MqttQoSLevel[]

Topics

Gets the topics requested to subscribe.

public string[] Topics { get; }

Property Value

string[]