MqttPublishVariableHeader class
The Variable Header of the Publish message contains the following fields in the order: Topic Name, Packet Identifier, and Properties.
- Implemented types
Constructors
- MqttPublishVariableHeader(MqttHeader? header)
- Initializes a new instance of the MqttPublishVariableHeader class.
- MqttPublishVariableHeader.fromByteBuffer(MqttHeader? header, MqttByteBuffer variableHeaderStream)
- Initializes a new instance of the MqttPublishVariableHeader class.
Properties
- contentType ↔ String?
-
getter/setter pair
- correlationData ↔ Uint8Buffer?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- header ↔ MqttHeader?
-
Standard header
getter/setter pair
- length → int
-
The length of the variable header as received.
To get the write length usegetWriteLength.
no setteroverride
- messageExpiryInterval ↔ int?
-
getter/setter pair
- messageIdentifier ↔ int
-
Message identifier
getter/setter pair
- payloadFormatIndicator ↔ bool
-
getter/setter pair
- responseTopic ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptionIdentifier
↔ List<
int?> -
getter/setter pair
- topicAlias ↔ int?
-
getter/setter pair
- topicName ↔ String
-
Topic name
getter/setter pair
-
userProperty
↔ List<
MqttUserProperty> -
getter/setter pair
Methods
-
getWriteLength(
) → int -
Gets the length of the write data when WriteTo will be called.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFrom(
MqttByteBuffer variableHeaderStream) → void -
Creates a variable header from the specified header stream.
override
-
readMessageIdentifier(
MqttByteBuffer stream) → void - Message identifier
-
readTopicName(
MqttByteBuffer stream) → void - Topic name
-
toString(
) → String -
A string representation of this object.
override
-
writeMessageIdentifier(
MqttByteBuffer stream) → void - Message identifier
-
writeTo(
MqttByteBuffer variableHeaderStream) → void -
Writes the variable header to the supplied stream.
override
-
writeTopicName(
MqttByteBuffer stream) → void - Topic name
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited