MqttMessage class

Represents an MQTT message that contains a fixed header, variable header and message body.

Messages roughly look as follows.

| Header, 2-5 Bytes Length |

| Variable Header(VH) | | n Bytes Length |

| Message Payload | | 256MB minus VH Size |

Implementers

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
The header of the MQTT Message. Contains metadata about the message
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
readFrom(MqttByteBuffer messageStream) → void
Reads a message from the supplied stream.
toString() String
Returns a string representation of this object.
override
writeTo(MqttByteBuffer messageStream) → void
Writes the message to the supplied stream.

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

createFrom(MqttByteBuffer messageStream) MqttMessage
Creates a new instance of an MQTT Message based on a raw message stream.