RawMessage class

An MQTT message as bytes, before any codec runs.

This is what moves between the client and the transport. Typed messages only exist above this layer.

Constructors

RawMessage(String topic, List<int> payload, {Qos qos = Qos.atLeastOnce, bool retained = false})
Creates a message for the full topic with payload bytes.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
payload → List<int>
The message body.
final
qos → Qos
The delivery guarantee.
final
retained → bool
When publishing: ask the broker to keep this as the topic's last message. When receiving: this came from the broker's store, not live.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
topic → String
The full topic, prefix included, like bedaya/a1/telemetry.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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