MqttPublishReasonCode enum

MQTT reason code

A Reason Code is a one byte unsigned value that indicates the result of an operation. Reason codes less than 0x80 indicate successful completion of an operation. The normal Reason Code for success is 0. Reason Code values of 0x80 or greater indicate failure. Publish message processing reason codes.

Inheritance

Constructors

MqttPublishReasonCode()
const

Values

success → const MqttPublishReasonCode

The message is accepted. Publication of the QoS 1 message proceeds.

noMatchingSubscribers → const MqttPublishReasonCode

The message is accepted but there are no subscribers. This is sent only by the broker If the broker knows that there are no matching subscribers, it MAY use this reason dode instead of success.

unspecifiedError → const MqttPublishReasonCode

The receiver does not accept the publish but either does not want to reveal the reason, or it does not match one of the other values.

implementationSpecificError → const MqttPublishReasonCode

The publish is valid but the receiver is not willing to accept it.

notAuthorized → const MqttPublishReasonCode

The publish is not authorized.

topicNameInvalid → const MqttPublishReasonCode

The Topic Name is not malformed, but is not accepted by the client or broker.

packetIdentifierInUse → const MqttPublishReasonCode

The packet(message) identifier is already in use. This might indicate a mismatch in the session state between the client and the broker.

packetIdentifierNotFound → const MqttPublishReasonCode

The packet(message) identifier is not known. This is not an error during recovery, but at other times indicates a mismatch between the session state on the client and broker.

quotaExceeded → const MqttPublishReasonCode

An implementation or administrative imposed limit has been exceeded.

payloadFormatInvalid → const MqttPublishReasonCode

The payload format does not match the specified payload format indicator.

notSet → const MqttPublishReasonCode

Not set indication, not part of the MQTT specification, used by the client to indicate a field has not yet been set.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

values → const List<MqttPublishReasonCode>
A constant List of the values in this enum, in order of their declaration.