MqttConnectAckMessage class

Message that indicates a connection acknowledgement.

On successful connection the MqttClientConnectionStatus class is updated with this message as returned by the broker.

Inheritance

Constructors

MqttConnectAckMessage.new()
Initializes a new instance of the MqttConnectAckMessage class. Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.
MqttConnectAckMessage.fromByteBuffer(MqttHeader header, MqttByteBuffer messageStream)
Initializes a new instance of the MqttConnectAckMessage 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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variableHeader MqttConnectAckVariableHeader
Gets or sets the variable header contents. Contains extended metadata about the message
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFrom(MqttByteBuffer messageStream) → void
Reads a message from the supplied stream.
override
toString() String
A string representation of this object.
override
withReturnCode(MqttConnectReturnCode returnCode) MqttConnectAckMessage
Sets the return code of the Variable Header.
withSessionPresent(bool present) MqttConnectAckMessage
Sets the session present flag. Can only be set if the protocol is 3.1.1
writeTo(MqttByteBuffer messageStream) → void
Writes a message to the supplied stream.
override

Operators

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