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