Enum MqttReasonCode
- Namespace
- nanoFramework.M2Mqtt.Messages
- Assembly
- nanoFramework.M2Mqtt.Core.dll
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.
public enum MqttReasonCode
Fields
AdministrativeAction = 152Administrative action.
BadAuthenticationMethod = 140Bad authentication method.
BadUserNameOrPassword = 134Bad User Name or Password.
Banned = 138Banned.
ClientIdentifierNotValid = 133Client Identifier not valid.
ConnectionRateExceeded = 159Connection rate exceeded.
ConnectionRefusedBadUserNameOrPassword = 4The data in the user name or password is malformed.
ConnectionRefusedIdentifierRejected = 2The Client identifier is correct UTF-8 but not allowed by the Server.
ConnectionRefusedNotAuthorized = 5The Client is not authorized to connect.
The Network Connection has been made but the MQTT service is unavailable.
ConnectionRefusedUnacceptableProtocolVersion = 1The Server does not support the level of the MQTT protocol requested by the Client.
ContinueAuthentication = 24Continue authentication.
DisconnectWithWillMessage = 4Disconnect with Will Message.
GrantedQoS0 = 0Granted QoS 0.
GrantedQoS1 = 1Granted QoS 1.
GrantedQoS2 = 2Granted QoS 2.
ImplementationSpecificError = 131Implementation specific error.
KeepAliveTimeout = 141Keep Alive timeout.
MalformedPacket = 129Malformed Packet.
MaximumConnectTime = 160Maximum connect time.
MessageRateTooHigh = 150Message rate too high.
NoMatchingSubscribers = 16No matching subscribers.
NoSubscriptionExisted = 17No subscription existed.
NormalDisconnection = 0Normal disconnection.
NotAuthorized = 135Not authorized.
PacketIdentifierInUse = 145Packet Identifier in use.
PacketIdentifierNotFound = 146Packet Identifier not found.
PacketTooLarge = 149Packet too large.
PayloadFormatInvalid = 153Payload format invalid.
ProtocolError = 130Protocol Error.
QoSNotSupported = 155QoS not supported.
QuotaExceeded = 151Quota exceeded.
ReAuthenticate = 25Re-authenticate.
ReceiveMaximumExceeded = 147Receive Maximum exceeded.
RetainNotSupported = 154Retain not supported.
ServeShuttingDown = 139Server shutting down.
ServerBusy = 137Server busy.
ServerMoved = 157Server moved.
Server unavailable.
SessionTakenOver = 142Session taken over.
Shared Subscriptions not supported.
SubscriptionIdentifiersNotSupported = 161Subscription Identifiers not supported.
Success = 0Success.
TopicAliasInvalid = 148Topic Alias invalid.
TopicFilterInvalid = 143Topic Filter invalid.
TopicNameInvalid = 144Topic Name invalid.
UnspecifiedError = 128Unspecified error.
UnsupportedProtocolVersion = 132Unsupported Protocol Version.
UseAnotherServer = 156Use another server.
WildcardSubscriptionsNotSupported = 162Wildcard Subscriptions not supported.