Class MqttMsgUnsubscribe
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.dll
Class for UNSUBSCRIBE message from client to broker
public class MqttMsgUnsubscribe : MqttMsgBase
- Inheritance
-
MqttMsgUnsubscribe
- Inherited Members
- Extension Methods
Constructors
MqttMsgUnsubscribe()
Constructor
public MqttMsgUnsubscribe()
MqttMsgUnsubscribe(string[])
Constructor
public MqttMsgUnsubscribe(string[] topics)
Parameters
topics
string[]List of topics to unsubscribe
Properties
Topics
List of topics to unsubscribe
public string[] Topics { get; set; }
Property Value
- string[]
Methods
GetBytes(MqttProtocolVersion)
Returns the bytes that represents the current object.
public override byte[] GetBytes(MqttProtocolVersion protocolVersion)
Parameters
protocolVersion
MqttProtocolVersionMQTT protocol version
Returns
- byte[]
An array of bytes that represents the current object.
Parse(byte, MqttProtocolVersion, IMqttNetworkChannel)
Parse bytes for a UNSUBSCRIBE message
public static MqttMsgUnsubscribe Parse(byte fixedHeaderFirstByte, MqttProtocolVersion protocolVersion, IMqttNetworkChannel channel)
Parameters
fixedHeaderFirstByte
byteFirst fixed header byte
protocolVersion
MqttProtocolVersionMQTT Protocol Version
channel
IMqttNetworkChannelChannel connected to the broker
Returns
- MqttMsgUnsubscribe
UNSUBSCRIBE message instance
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.