MqttPublishCode constants

The return value after an MQTT client attempts to publish a message, indicating the result of the behavior.
MqttPublishAdministrativeAction
(152) - The connection is closed due to an administrative action.
MqttPublishImplementationSpecificError
(131) - The PUBLISH is valid but the receiver is not willing to accept it.
MqttPublishKeepAliveTimeout
(141) - The connection is closed because no packet has been received for 1.5 times the keep alive time.
MqttPublishMalformedPacket
(129) - The received packet does not conform to this specification.
MqttPublishMessageRateTooHigh
(150) - The received data rate is too high.
MqttPublishNoMatchingSubscribers
(16) - The message is accepted but there are no subscribers.
MqttPublishNotAuthorized
(135) - The PUBLISH is not authorized.
MqttPublishPacketIdentifierInUse
(145) - The packet identifier is already in use. This might indicate a mismatch in the session state between the client and server.
MqttPublishPacketTooLarge
(149) - The packet size is greater than the maximum packet size for this client or server.
MqttPublishPayloadFormatInvalid
(153) - The payload format does not match the one specified in the payload format indicator.
MqttPublishProtocolError
(130) - An unexpected or out of order packet was received.
MqttPublishQoSNotSupported
(155) - The client specified a QoS greater than the QoS specified in a maximum QoS in the CONNACK.
MqttPublishQuotaExceeded
(151) - An implementation or administrative imposed limit has been exceeded.
MqttPublishReceiveMaximumExceeded
(147) - The client or server has received more than receive maximum publication for which it has not sent PUBACK or PUBCOMP.
MqttPublishRetainNotSupported
(154) - The server does not support retained messages.
MqttPublishServerBusy
(137) - The server is busy and cannot continue processing requests from this client.
MqttPublishServerMoved
(157) - The server is moved, and the client should permanently change its server location.
MqttPublishServerShuttingDown
(139) - The server is shutting down.
MqttPublishSessionTakenOver
(142) - Another connection using the same client ID has connected causing this connection to be closed.
MqttPublishSuccess
(0) - The message is accepted.
MqttPublishTopicAliasInvalid
(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.
MqttPublishTopicNameinvalid
(144) - The topic name is not malformed but is not accepted by this client or server.
MqttPublishUnspecifiedError
(128) - The receiver does not accept the publish but either does not want to reveal the reason, or it does not match one of the other values.
MqttPublishUseAnotherServer
(156) - The client should temporarily change its server.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal