MqttSubscribeReasonCode 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. Subscribe message processing reason codes. Also contains codes only used by the unsubscribe ack message, these are commented appropriately.
Constructors
- MqttSubscribeReasonCode()
-
const
Values
- grantedQos0 → const MqttSubscribeReasonCode
-
The subscription is accepted and the maximum QoS sent will be QoS 0. This might be a lower QoS than was requested. Note that when used in the unsubscribe ack message this value indicates success.
- grantedQos1 → const MqttSubscribeReasonCode
-
The subscription is accepted and the maximum QoS sent will be QoS 1. This might be a lower QoS than was requested.
- grantedQos2 → const MqttSubscribeReasonCode
-
The subscription is accepted and any received QoS will be sent to this subscription.
- noSubscriptionExisted → const MqttSubscribeReasonCode
-
No matching topic filter is being used by the client. Used only by the unsubscribe ack message.
- unspecifiedError → const MqttSubscribeReasonCode
-
The subscription is not accepted and the broker either does not wish to reveal the reason or none of the other reason codes apply.
- implementationSpecificError → const MqttSubscribeReasonCode
-
The subscribe is valid but the broker does not accept it.
- notAuthorized → const MqttSubscribeReasonCode
-
The client is not authorized to make this subscription.
- topicFilterInvalid → const MqttSubscribeReasonCode
-
The topic filter is correctly formed but is not allowed for this client.
- packetIdentifierInUse → const MqttSubscribeReasonCode
-
The specified packet(message) identifier is already in use.
- quotaExceeded → const MqttSubscribeReasonCode
-
An implementation or administrative imposed limit has been exceeded.
-
The broker does not support shared subscriptions for this client.
- subscriptionIdentifiersNotSupported → const MqttSubscribeReasonCode
-
The broker does not support subscription identifiers; the subscription is not accepted.
- wildcardSubscriptionsNotSupported → const MqttSubscribeReasonCode
-
The broker does not support wildcard Subscriptions; the subscription is not accepted.
- notSet → const MqttSubscribeReasonCode
-
Not set indicator, not part of the MQTT specification
Properties
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<
MqttSubscribeReasonCode> - A constant List of the values in this enum, in order of their declaration.