MqttDisconnectionCode constants

Reason codes that an MQTT client can specify when disconnecting from the broker.
MqttDisconnectionAdministrativeAction
(152) - The connection is closed due to an administrative action.
MqttDisconnectionConnectionRateExceeded
(159) - This connection is closed because the connection rate is too high.
MqttDisconnectionImplementationSpecificError
(131) - The packet received is value but cannot be processed by this implementation.
MqttDisconnectionKeepAliveTimeout
(141) - The connection is closed because no packet has been received for 1.5 times the keep alive time.
MqttDisconnectionMalformedPacket
(129) - The received packet does not conform to this specification.
MqttDisconnectionMaximumConnectTime
(160) - The maximum connection time authorized for this connection has been exceeded.
MqttDisconnectionMessageRateTooHigh
(150) - The received data rate is too high.
MqttDisconnectionNormal
(0) - Close the connection normally. Do not send the will message.
MqttDisconnectionNotAuthorized
(135) - The request is not authorized.
MqttDisconnectionPacketTooLarge
(149) - The packet size is greater than the maximum packet size for this client or server.
MqttDisconnectionPayloadFormatInvalid
(153) - The payload format does not match the one specified by the payload format indicator.
MqttDisconnectionProtocolError
(130) - An unexpected or out of order packet was received.
MqttDisconnectionQoSNotSupported
(155) - The client specified a QoS greater than the QoS specified in a maximum QoS in the CONNACK.
MqttDisconnectionQuotaExceeded
(151) - An implementation or administrative imposed limit has been exceeded.
MqttDisconnectionReceiveMaximumExceeded
(147) - The client or server has received more than receive maximum publication for which it has not sent PUBACK or PUBCOMP.
MqttDisconnectionRetainNotSupported
(154) - The server does not support retained messages.
MqttDisconnectionServerBusy
(137) - The server is busy and cannot continue processing requests from this client.
MqttDisconnectionServerMoved
(157) - The server is moved, and the client should permanently change its server location.
MqttDisconnectionServerShuttingDown
(139) - The server is shutting down.
MqttDisconnectionSessionTakenOver
(142) - Another connection using the same client ID has connected causing this connection to be closed.
MqttDisconnectionSharedSubscriptionsNotSupported
(158) - The server does not support shared subscriptions.
MqttDisconnectionSubscriptionIdentifiersNotSupported
(161) - The server does not support subscription identifiers; the subscription is not accepted.
MqttDisconnectionTopicAliasInvalid
(148) - The client or server has received a PUBLISH packet containing a topic alias, which is greater than the maximum topic alias it sent in the CONNECT or CONNACK packet.
MqttDisconnectionTopicFilterInvalid
(143) - The topic filter is correctly formed but is not accepted by this server.
MqttDisconnectionTopicNameinvalid
(144) - The topic name is correctly formed but is not accepted by this client or server.
MqttDisconnectionUnspecifiedError
(128) - The connection is closed but the sender either does not wish to reveal the reason, or none of the other reason codes apply.
MqttDisconnectionUseAnotherServer
(156) - The client should temporarily change its server.
MqttDisconnectionWildcardSubscriptionsNotSupported
(162) - The server does not support wildcard subscriptions; the subscription is not accepted.
MqttDisconnectionWithWillMessage
(4) - The client wishes to disconnect but requires that the server also publishes its will message.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal