MqttSubscriptionCode constants

The return value after an MQTT client attempts to subscribe to a topic, indicating the result of the behavior.
MqttSubscriptionAdministrativeAction
(152) - The connection is closed due to an administrative action.
MqttSubscriptionGrantedQoS0
(0) - The subscription is accepted and the maximum QoS sent will be QoS 0. This might be a lower QoS than was requested.
MqttSubscriptionGrantedQoS1
(1) - The subscription is accepted and the maximum QoS sent will be QoS 1. This might be a lower QoS than was requested.
MqttSubscriptionGrantedQoS2
(2) - The subscription is accepted and any received QoS will be sent to this subscription.
MqttSubscriptionIdentifiersNotSupported
(161) - The server does not support subscription identifiers; the subscription is not accepted.
MqttSubscriptionImplementationSpecificError
(131) - The subscription is valid, but the server does not accept it.
MqttSubscriptionKeepAliveTimeout
(141) - The connection is closed because no packet has been received for 1.5 times the keep alive time.
MqttSubscriptionMalformedPacket
(129) - The received packet does not conform to this specification.
MqttSubscriptionMessageRateTooHigh
(150) - The received data rate is too high.
MqttSubscriptionNotAuthorized
(135) - The client is not authorized to make this subscription.
MqttSubscriptionPacketIdentifierInUse
(145) - The specified packet identifier is already in use.
MqttSubscriptionPacketTooLarge
(149) - The packet size is greater than the maximum packet size for this client or server.
MqttSubscriptionProtocolError
(130) - An unexpected or out of order packet was received.
MqttSubscriptionQuotaExceeded
(151) - An implementation or administrative imposed limit has been exceeded.
MqttSubscriptionReceiveMaximumExceeded
(147) - The client or server has received more than receive maximum publication for which it has not sent PUBACK or PUBCOMP.
MqttSubscriptionServerBusy
(137) - The server is busy and cannot continue processing requests from this client.
MqttSubscriptionServerMoved
(157) - The server is moved, and the client should permanently change its server location.
MqttSubscriptionServerShuttingDown
(139) - The server is shutting down.
MqttSubscriptionSessionTakenOver
(142) - Another connection using the same client ID has connected causing this connection to be closed.
MqttSubscriptionSharedNotSupported
(158) - The server does not support shared subscriptions for this client.
MqttSubscriptionTopicFilterInvalid
(143) - The topic filter is correctly formed but is not allowed for this client.
MqttSubscriptionUnspecifiedError
(128) - The subscription is not accepted and the server either does not wish to reveal the reason or none of the other reason codes apply.
MqttSubscriptionWildcardNotSupported
(162) - The server does not support wildcard subscriptions; the subscription is not accepted.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal