enum

MQTT::V5::ReasonCode

Inherits Enum / Comparable / Value / Object

5.0 replaces 3.1.1's handful of return codes with a single reason code space shared across CONNACK, the PUBLISH acknowledgements, SUBACK, UNSUBACK, DISCONNECT and AUTH.

NOTE:: anything below 0x80 is a success. Success, GrantedQoS0 and NormalDisconnection are all zero, they simply read differently depending on which packet carried them

Constants

Success = 0_u8
GrantedQoS1 = 1_u8
GrantedQoS2 = 2_u8
DisconnectWithWillMessage = 4_u8
NoMatchingSubscribers = 16_u8
NoSubscriptionExisted = 17_u8
ContinueAuthentication = 24_u8
ReAuthenticate = 25_u8
UnspecifiedError = 128_u8
MalformedPacket = 129_u8
ProtocolError = 130_u8
ImplementationSpecificError = 131_u8
UnsupportedProtocolVersion = 132_u8
ClientIdentifierNotValid = 133_u8
BadUserNameOrPassword = 134_u8
NotAuthorized = 135_u8
ServerUnavailable = 136_u8
ServerBusy = 137_u8
Banned = 138_u8
ServerShuttingDown = 139_u8
BadAuthenticationMethod = 140_u8
KeepAliveTimeout = 141_u8
SessionTakenOver = 142_u8
TopicFilterInvalid = 143_u8
TopicNameInvalid = 144_u8
PacketIdentifierInUse = 145_u8
PacketIdentifierNotFound = 146_u8
ReceiveMaximumExceeded = 147_u8
TopicAliasInvalid = 148_u8
PacketTooLarge = 149_u8
MessageRateTooHigh = 150_u8
QuotaExceeded = 151_u8
AdministrativeAction = 152_u8
PayloadFormatInvalid = 153_u8
RetainNotSupported = 154_u8
QoSNotSupported = 155_u8
UseAnotherServer = 156_u8
ServerMoved = 157_u8
SharedSubscriptionsNotSupported = 158_u8
ConnectionRateExceeded = 159_u8
MaximumConnectTime = 160_u8
SubscriptionIdentifiersNotSupported = 161_u8
WildcardSubscriptionsNotSupported = 162_u8

Instance methods

administrative_action?

Returns true if this enum value equals AdministrativeAction

Source
bad_authentication_method?

Returns true if this enum value equals BadAuthenticationMethod

Source
bad_user_name_or_password?

Returns true if this enum value equals BadUserNameOrPassword

Source
banned?

Returns true if this enum value equals Banned

Source
client_identifier_not_valid?

Returns true if this enum value equals ClientIdentifierNotValid

Source
connection_rate_exceeded?

Returns true if this enum value equals ConnectionRateExceeded

Source
continue_authentication?

Returns true if this enum value equals ContinueAuthentication

Source
description
Source
disconnect_with_will_message?

Returns true if this enum value equals DisconnectWithWillMessage

Source
error?
Source
fatal?

Whether reconnecting with the same settings could plausibly work. Authentication, identity and protocol failures will not, and a redirect wants us somewhere else entirely

Source
granted_qo_s1?

Returns true if this enum value equals GrantedQoS1

Source
granted_qo_s2?

Returns true if this enum value equals GrantedQoS2

Source
granted_qos

The QoS a SUBACK granted, or nil if the filter was rejected

Source
implementation_specific_error?

Returns true if this enum value equals ImplementationSpecificError

Source
keep_alive_timeout?

Returns true if this enum value equals KeepAliveTimeout

Source
malformed_packet?

Returns true if this enum value equals MalformedPacket

Source
maximum_connect_time?

Returns true if this enum value equals MaximumConnectTime

Source
message_rate_too_high?

Returns true if this enum value equals MessageRateTooHigh

Source
no_matching_subscribers?

Returns true if this enum value equals NoMatchingSubscribers

Source
no_subscription_existed?

Returns true if this enum value equals NoSubscriptionExisted

Source
not_authorized?

Returns true if this enum value equals NotAuthorized

Source
packet_identifier_in_use?

Returns true if this enum value equals PacketIdentifierInUse

Source
packet_identifier_not_found?

Returns true if this enum value equals PacketIdentifierNotFound

Source
packet_too_large?

Returns true if this enum value equals PacketTooLarge

Source
payload_format_invalid?

Returns true if this enum value equals PayloadFormatInvalid

Source
protocol_error?

Returns true if this enum value equals ProtocolError

Source
qo_s_not_supported?

Returns true if this enum value equals QoSNotSupported

Source
quota_exceeded?

Returns true if this enum value equals QuotaExceeded

Source
re_authenticate?

Returns true if this enum value equals ReAuthenticate

Source
receive_maximum_exceeded?

Returns true if this enum value equals ReceiveMaximumExceeded

Source
retain_not_supported?

Returns true if this enum value equals RetainNotSupported

Source
server_busy?

Returns true if this enum value equals ServerBusy

Source
server_moved?

Returns true if this enum value equals ServerMoved

Source
server_shutting_down?

Returns true if this enum value equals ServerShuttingDown

Source
server_unavailable?

Returns true if this enum value equals ServerUnavailable

Source
session_taken_over?

Returns true if this enum value equals SessionTakenOver

Source
shared_subscriptions_not_supported?

Returns true if this enum value equals SharedSubscriptionsNotSupported

Source
subscription_identifiers_not_supported?

Returns true if this enum value equals SubscriptionIdentifiersNotSupported

Source
success?

MQTT-2.4, everything below 0x80 is a success

Source
topic_alias_invalid?

Returns true if this enum value equals TopicAliasInvalid

Source
topic_filter_invalid?

Returns true if this enum value equals TopicFilterInvalid

Source
topic_name_invalid?

Returns true if this enum value equals TopicNameInvalid

Source
unspecified_error?

Returns true if this enum value equals UnspecifiedError

Source
unsupported_protocol_version?

Returns true if this enum value equals UnsupportedProtocolVersion

Source
use_another_server?

Returns true if this enum value equals UseAnotherServer

Source
wildcard_subscriptions_not_supported?

Returns true if this enum value equals WildcardSubscriptionsNotSupported

Source