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