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
DisconnectWithWillMessage = 4_u8
NoMatchingSubscribers = 16_u8
NoSubscriptionExisted = 17_u8
ContinueAuthentication = 24_u8
UnspecifiedError = 128_u8
ImplementationSpecificError = 131_u8
UnsupportedProtocolVersion = 132_u8
ClientIdentifierNotValid = 133_u8
BadUserNameOrPassword = 134_u8
ServerUnavailable = 136_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
MessageRateTooHigh = 150_u8
AdministrativeAction = 152_u8
PayloadFormatInvalid = 153_u8
RetainNotSupported = 154_u8
UseAnotherServer = 156_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
Sourcebad_authentication_method?
Returns true if this enum value equals BadAuthenticationMethod
Sourcebad_user_name_or_password?
Returns true if this enum value equals BadUserNameOrPassword
Sourcebanned?
Returns true if this enum value equals Banned
Sourceclient_identifier_not_valid?
Returns true if this enum value equals ClientIdentifierNotValid
Sourceconnection_rate_exceeded?
Returns true if this enum value equals ConnectionRateExceeded
Sourcecontinue_authentication?
Returns true if this enum value equals ContinueAuthentication
Sourcedisconnect_with_will_message?
Returns true if this enum value equals DisconnectWithWillMessage
Sourcefatal?
Whether reconnecting with the same settings could plausibly work.
Authentication, identity and protocol failures will not, and a redirect
wants us somewhere else entirely
Sourcegranted_qo_s1?
Returns true if this enum value equals GrantedQoS1
Sourcegranted_qo_s2?
Returns true if this enum value equals GrantedQoS2
Sourcegranted_qos
The QoS a SUBACK granted, or nil if the filter was rejected
Sourceimplementation_specific_error?
Returns true if this enum value equals ImplementationSpecificError
Sourcekeep_alive_timeout?
Returns true if this enum value equals KeepAliveTimeout
Sourcemaximum_connect_time?
Returns true if this enum value equals MaximumConnectTime
Sourcemessage_rate_too_high?
Returns true if this enum value equals MessageRateTooHigh
Sourceno_matching_subscribers?
Returns true if this enum value equals NoMatchingSubscribers
Sourceno_subscription_existed?
Returns true if this enum value equals NoSubscriptionExisted
Sourcenot_authorized?
Returns true if this enum value equals NotAuthorized
Sourcepacket_identifier_in_use?
Returns true if this enum value equals PacketIdentifierInUse
Sourcepacket_identifier_not_found?
Returns true if this enum value equals PacketIdentifierNotFound
Sourcepacket_too_large?
Returns true if this enum value equals PacketTooLarge
Sourceprotocol_error?
Returns true if this enum value equals ProtocolError
Sourceqo_s_not_supported?
Returns true if this enum value equals QoSNotSupported
Sourcequota_exceeded?
Returns true if this enum value equals QuotaExceeded
Sourcere_authenticate?
Returns true if this enum value equals ReAuthenticate
Sourcereceive_maximum_exceeded?
Returns true if this enum value equals ReceiveMaximumExceeded
Sourceretain_not_supported?
Returns true if this enum value equals RetainNotSupported
Sourceserver_busy?
Returns true if this enum value equals ServerBusy
Sourceserver_moved?
Returns true if this enum value equals ServerMoved
Sourceserver_shutting_down?
Returns true if this enum value equals ServerShuttingDown
Sourceserver_unavailable?
Returns true if this enum value equals ServerUnavailable
Sourcesession_taken_over?
Returns true if this enum value equals SessionTakenOver
Sourceshared_subscriptions_not_supported?
Returns true if this enum value equals SharedSubscriptionsNotSupported
Sourcesubscription_identifiers_not_supported?
Returns true if this enum value equals SubscriptionIdentifiersNotSupported
Sourcesuccess?
MQTT-2.4, everything below 0x80 is a success
Sourcetopic_alias_invalid?
Returns true if this enum value equals TopicAliasInvalid
Sourcetopic_filter_invalid?
Returns true if this enum value equals TopicFilterInvalid
Sourcetopic_name_invalid?
Returns true if this enum value equals TopicNameInvalid
Sourceunspecified_error?
Returns true if this enum value equals UnspecifiedError
Sourceunsupported_protocol_version?
Returns true if this enum value equals UnsupportedProtocolVersion
Sourceuse_another_server?
Returns true if this enum value equals UseAnotherServer
Sourcewildcard_subscriptions_not_supported?
Returns true if this enum value equals WildcardSubscriptionsNotSupported
Source