MqttPingRequestMessage class

The ping request message is sent from the client to the broker. It can be used to:

Indicate to the broker that the client is alive in the absence of any other MQTT messages being sent by the client.

Request that the broker responds to confirm that it is alive.

Exercise the network to indicate that the network connection is active.

This message is used in keep alive processing.

Inheritance

Constructors

MqttPingRequestMessage()
Initializes a new instance of the MqttPingRequestMessage class.
MqttPingRequestMessage.fromHeader(MqttHeader header)
Initializes a new instance of the MqttPingRequestMessage class.

Properties

hashCode int
The hash code for this object.
no setterinherited
The header of the MQTT Message. Contains metadata about the message
getter/setter pairinherited
isValid bool
Is valid
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFrom(MqttByteBuffer stream) → void
Read from a message stream. Not implemented, message is send only.
override
toString() String
A string representation of this object.
override
writeTo(MqttByteBuffer messageStream) → void
Writes the message to the supplied stream.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited