Class MqttMsgPuback
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.dll
Class for PUBACK message from broker to client
public class MqttMsgPuback : MqttMsgBase- Inheritance
- 
      
      
      MqttMsgPuback
- Inherited Members
- Extension Methods
Constructors
MqttMsgPuback()
Constructor
public MqttMsgPuback()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
- protocolVersionMqttProtocolVersion
- MQTT protocol version 
Returns
- byte[]
- An array of bytes that represents the current object. 
Parse(byte, MqttProtocolVersion, IMqttNetworkChannel)
Parse bytes for a PUBACK message
public static MqttMsgPuback Parse(byte fixedHeaderFirstByte, MqttProtocolVersion protocolVersion, IMqttNetworkChannel channel)Parameters
- fixedHeaderFirstBytebyte
- First fixed header byte 
- protocolVersionMqttProtocolVersion
- MQTT Protocol Version 
- channelIMqttNetworkChannel
- Channel connected to the broker 
Returns
- MqttMsgPuback
- PUBACK message instance 
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
- A string that represents the current object.