enum
MQTT::V5::ReasonCode
Overview
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
Defined in:
mqtt/v5/reason_code.crEnum Members
-
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 -
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 -
ConnectionRateExceeded =
159_u8 -
MaximumConnectTime =
160_u8 -
SubscriptionIdentifiersNotSupported =
161_u8 -
WildcardSubscriptionsNotSupported =
162_u8
Instance Method Summary
-
#administrative_action?
Returns
trueif this enum value equalsAdministrativeAction -
#bad_authentication_method?
Returns
trueif this enum value equalsBadAuthenticationMethod -
#bad_user_name_or_password?
Returns
trueif this enum value equalsBadUserNameOrPassword -
#banned?
Returns
trueif this enum value equalsBanned -
#client_identifier_not_valid?
Returns
trueif this enum value equalsClientIdentifierNotValid -
#connection_rate_exceeded?
Returns
trueif this enum value equalsConnectionRateExceeded -
#continue_authentication?
Returns
trueif this enum value equalsContinueAuthentication - #description : String
-
#disconnect_with_will_message?
Returns
trueif this enum value equalsDisconnectWithWillMessage - #error? : Bool
-
#fatal? : Bool
Whether reconnecting with the same settings could plausibly work.
-
#granted_qo_s1?
Returns
trueif this enum value equalsGrantedQoS1 -
#granted_qo_s2?
Returns
trueif this enum value equalsGrantedQoS2 -
#granted_qos : QoS | Nil
The QoS a SUBACK granted, or nil if the filter was rejected
-
#implementation_specific_error?
Returns
trueif this enum value equalsImplementationSpecificError -
#keep_alive_timeout?
Returns
trueif this enum value equalsKeepAliveTimeout -
#malformed_packet?
Returns
trueif this enum value equalsMalformedPacket -
#maximum_connect_time?
Returns
trueif this enum value equalsMaximumConnectTime -
#message_rate_too_high?
Returns
trueif this enum value equalsMessageRateTooHigh -
#no_matching_subscribers?
Returns
trueif this enum value equalsNoMatchingSubscribers -
#no_subscription_existed?
Returns
trueif this enum value equalsNoSubscriptionExisted -
#not_authorized?
Returns
trueif this enum value equalsNotAuthorized -
#packet_identifier_in_use?
Returns
trueif this enum value equalsPacketIdentifierInUse -
#packet_identifier_not_found?
Returns
trueif this enum value equalsPacketIdentifierNotFound -
#packet_too_large?
Returns
trueif this enum value equalsPacketTooLarge -
#payload_format_invalid?
Returns
trueif this enum value equalsPayloadFormatInvalid -
#protocol_error?
Returns
trueif this enum value equalsProtocolError -
#qo_s_not_supported?
Returns
trueif this enum value equalsQoSNotSupported -
#quota_exceeded?
Returns
trueif this enum value equalsQuotaExceeded -
#re_authenticate?
Returns
trueif this enum value equalsReAuthenticate -
#receive_maximum_exceeded?
Returns
trueif this enum value equalsReceiveMaximumExceeded -
#retain_not_supported?
Returns
trueif this enum value equalsRetainNotSupported -
#server_busy?
Returns
trueif this enum value equalsServerBusy -
#server_moved?
Returns
trueif this enum value equalsServerMoved -
#server_shutting_down?
Returns
trueif this enum value equalsServerShuttingDown -
#server_unavailable?
Returns
trueif this enum value equalsServerUnavailable -
#session_taken_over?
Returns
trueif this enum value equalsSessionTakenOver -
#shared_subscriptions_not_supported?
Returns
trueif this enum value equalsSharedSubscriptionsNotSupported -
#subscription_identifiers_not_supported?
Returns
trueif this enum value equalsSubscriptionIdentifiersNotSupported -
#success? : Bool
MQTT-2.4, everything below 0x80 is a success
-
#topic_alias_invalid?
Returns
trueif this enum value equalsTopicAliasInvalid -
#topic_filter_invalid?
Returns
trueif this enum value equalsTopicFilterInvalid -
#topic_name_invalid?
Returns
trueif this enum value equalsTopicNameInvalid -
#unspecified_error?
Returns
trueif this enum value equalsUnspecifiedError -
#unsupported_protocol_version?
Returns
trueif this enum value equalsUnsupportedProtocolVersion -
#use_another_server?
Returns
trueif this enum value equalsUseAnotherServer -
#wildcard_subscriptions_not_supported?
Returns
trueif this enum value equalsWildcardSubscriptionsNotSupported
Instance Method Detail
Returns true if this enum value equals DisconnectWithWillMessage
Whether reconnecting with the same settings could plausibly work. Authentication, identity and protocol failures will not, and a redirect wants us somewhere else entirely
The QoS a SUBACK granted, or nil if the filter was rejected
Returns true if this enum value equals ImplementationSpecificError
Returns true if this enum value equals SubscriptionIdentifiersNotSupported
Returns true if this enum value equals UnsupportedProtocolVersion
Returns true if this enum value equals WildcardSubscriptionsNotSupported