MqttPublishMessage class

Implementation of an MQTT Publish Message, used for publishing telemetry data along a live MQTT stream.

Inheritance

Constructors

MqttPublishMessage()
Initializes a new instance of the MqttPublishMessage class.
MqttPublishMessage.fromByteBuffer(MqttHeader header, MqttByteBuffer messageStream)
Initializes a new instance of the MqttPublishMessage 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, inherited
payload MqttPublishPayload
Gets or sets the payload of the Mqtt Message.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
variableHeader MqttPublishVariableHeader
The variable header contents. Contains extended metadata about the message
read / write

Methods

clearPublishData() MqttPublishMessage
Removes the current published data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
publishData(Uint8Buffer data) MqttPublishMessage
Appends data to publish to the end of the current message payload.
readFrom(MqttByteBuffer messageStream) → void
Reads a message from the supplied stream.
override
setRetain({bool state}) → void
Set the retain flag on the message
toString() String
Returns a string representation of this object.
override
toTopic(String topicName) MqttPublishMessage
Sets the topic to publish data to.
withMessageIdentifier(int messageIdentifier) MqttPublishMessage
Sets the message identifier of the message.
withQos(MqttQos qos) MqttPublishMessage
Sets the Qos of the published message.
writeTo(MqttByteBuffer messageStream) → void
Writes the message to the supplied stream.
override

Operators

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