Class MqttMsgPubcomp
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.dll
Class for PUBCOMP message from broker to client
public class MqttMsgPubcomp : MqttMsgBase
- Inheritance
-
MqttMsgPubcomp
- Inherited Members
- Extension Methods
Constructors
MqttMsgPubcomp()
Constructor
public MqttMsgPubcomp()
Properties
Reason
The Reason as a string, v5.0 only
public string Reason { get; set; }
Property Value
ReasonCode
Return Code, v5.0 only
public MqttReasonCode ReasonCode { get; set; }
Property Value
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 PUBCOMP message
public static MqttMsgPubcomp Parse(byte fixedHeaderFirstByte, MqttProtocolVersion protocolVersion, IMqttNetworkChannel channel)
Parameters
fixedHeaderFirstByte
byteFirst fixed header byte
protocolVersion
MqttProtocolVersionMQTT Protocol Version
channel
IMqttNetworkChannelChannel connected to the broker
Returns
- MqttMsgPubcomp
PUBCOMP message instance
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.