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.
no setterinherited
The header of the MQTT Message. Contains metadata about the message
getter/setter pairinherited
payload MqttPublishPayload
Gets or sets the payload of the Mqtt Message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variableHeader MqttPublishVariableHeader?
The variable header contents. Contains extended metadata about the message
getter/setter pair

Methods

clearPublishData() MqttPublishMessage
Removes the current published data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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
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