MqttConnectionCode constants
The return value after an MQTT client attempts to establish a connection, indicating the result of the connection behavior.
MqttConnectionAdministrativeAction
(152) - The connection is closed due to an administrative action.MqttConnectionBadAuthenticationMethod
(140) - The authentication method is not supported or does not match the authentication method currently in use.MqttConnectionBadUserNameOrPassword
(134) - The server does not accept the username or password specified by the client.MqttConnectionBanned
(138) - The client has been banned by an administrative action. Contact the server administrator.MqttConnectionClientIdentifierNotValid
(133) - The client identifier is a valid string but is not allowed by the server.MqttConnectionImplementationSpecificError
(131) - The connection is valid but is not accepted by the server.MqttConnectionKeepAliveTimeout
(141) - The connection is closed because no packet has been received for 1.5 times the keep alive time.MqttConnectionMalformedPacket
(129) - Data within the connection packet could not be correctly parsed.MqttConnectionMaximumConnectTime
(160) - The maximum connection time authorized for this connection has been exceeded.MqttConnectionNotAuthorized
(135) - The client is not authorized to connect.MqttConnectionPacketIdentifierInUse
(145) - The packet identifier is already in use. This might indicate a mismatch in the session state between the client and server.MqttConnectionPacketTooLarge
(149) - The connection packet exceeded the maximum permissible size.MqttConnectionPayloadFormatInvalid
(153) - The will payload does not match the specified payload format indicator.MqttConnectionProtocolError
(130) - Data in the connection packet does not conform to this specification.MqttConnectionQoSNotSupported
(155) - The server does not support the QoS set in will QoS.MqttConnectionQuotaExceeded
(151) - An implementation or administrative imposed limit has been exceeded.MqttConnectionRateExceeded
(159) - The connection rate limit has been exceeded.MqttConnectionReceiveMaximumExceeded
(147) - The client or server has received more than receive maximum publication for which it has not sent PUBACK or PUBCOMP.MqttConnectionRetainNotSupported
(154) - The server does not support retained messages, and will retain was set to 1.MqttConnectionServerBusy
(137) - The server is busy. Try again later.MqttConnectionServerMoved
(157) - The client should permanently use another server.MqttConnectionServerShuttingDown
(139) - The server is shutting down.MqttConnectionServerUnavailable
(136) - The MQTT server is not available.MqttConnectionSessionTakenOver
(142) - Another connection using the same client ID has connected causing this connection to be closed.MqttConnectionSuccess
(0) - The connection is accepted.MqttConnectionTopicNameinvalid
(144) - The will topic name is not malformed but is not accepted by this server.MqttConnectionUnspecifiedError
(128) - The server does not wish to reveal the reason for the failure, or none of the other reason codes apply.MqttConnectionUnsupportedProtocolVersion
(132) - The server does not support the version of the MQTT protocol requested by the client.MqttConnectionUseAnotherServer
(156) - The client should temporarily use another server.Provide Feedback