Share via


MqttV311ConnectReturnCode enum

MQTT 3.1.1 Connect Return Codes.

Fields

UnacceptableProtocolVersion = 1

0x01: Connection refused, unacceptable protocol version The Server does not support the level of the MQTT protocol requested by the Client.

IdentifierRejected = 2

0x02: Connection refused, identifier rejected The Client identifier is correct UTF-8 but not allowed by the Server.

ServerUnavailable = 3

0x03: Connection refused, server unavailable The Network Connection has been made but the MQTT service is unavailable.

BadUsernameOrPassword = 4

0x04: Connection refused, bad user name or password The data in the user name or password is malformed.

NotAuthorized = 5

0x05: Connection refused, not authorized The Client is not authorized to connect.