Enumeration ConnectReasonCode

Server return code for connect attempts.

Enum values match MQTT5 spec encoding values.

Enumeration Members

Success: 0

Returned when the connection is accepted.

UnspecifiedError: 128

Returned when the server has a failure but does not want to specify a reason or none of the other reason codes apply.

MalformedPacket: 129

Returned when data in the CONNECT packet could not be correctly parsed by the server.

ProtocolError: 130

Returned when data in the CONNECT packet does not conform to the MQTT5 specification requirements.

ImplementationSpecificError: 131

Returned when the CONNECT packet is valid but was not accepted by the server.

UnsupportedProtocolVersion: 132

Returned when the server does not support MQTT5 protocol version specified in the connection.

ClientIdentifierNotValid: 133

Returned when the client identifier in the CONNECT packet is a valid string but not one that is allowed on the server.

BadUsernameOrPassword: 134

Returned when the server does not accept the username and/or password specified by the client in the connection packet.

NotAuthorized: 135

Returned when the client is not authorized to connect to the server.

ServerUnavailable: 136

Returned when the MQTT5 server is not available.

ServerBusy: 137

Returned when the server is too busy to make a connection. It is recommended that the client try again later.

Banned: 138

Returned when the client has been banned by the server.

BadAuthenticationMethod: 140

Returned when the authentication method used in the connection is either not supported on the server or it does not match the authentication method currently in use in the CONNECT packet.

TopicNameInvalid: 144

Returned when the Will topic name sent in the connection packet is correctly formed, but is not accepted by the server.

PacketTooLarge: 149

Returned when the connection packet exceeded the maximum permissible size on the server.

QuotaExceeded: 151

Returned when the quota limits set on the server have been met and/or exceeded.

PayloadFormatInvalid: 153

Returned when the Will payload in the CONNECT packet does not match the specified payload format indicator.

RetainNotSupported: 154

Returned when the server does not retain messages but the connection packet on the client had Will retain enabled.

QosNotSupported: 155

Returned when the server does not support the QOS setting in the Will QOS in the connection packet.

UseAnotherServer: 156

Returned when the server is telling the client to temporarily use another server instead of the one they are trying to connect to.

ServerMoved: 157

Returned when the server is telling the client to permanently use another server instead of the one they are trying to connect to.

ConnectionRateExceeded: 159

Returned when the server connection rate limit has been exceeded.

Generated using TypeDoc