ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
Loading...
Searching...
No Matches
Enumerations
MQTT_Connection_Error.h File Reference
#include <stdint.h>
Include dependency graph for MQTT_Connection_Error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  MQTT_Connection_Error : uint8_t {
  NONE , REFUSE_PROTOCOL , REFUSE_ID_REJECTED , REFUSE_SERVER_UNAVAILABLE ,
  REFUSE_BAD_USERNAME , REFUSE_NOT_AUTHORIZED
}
 Possible error states the MQTT broker connection can be in, if connecting the device to the MQTT broker failed. More...
 

Enumeration Type Documentation

◆ MQTT_Connection_Error

enum class MQTT_Connection_Error : uint8_t
strong

Possible error states the MQTT broker connection can be in, if connecting the device to the MQTT broker failed.

Enumerator
NONE 

Connection accepted.

REFUSE_PROTOCOL 

Connection failed because of a non matching MQTT protocol version used by the device.

REFUSE_ID_REJECTED 

Connection failed because the client ID is in the correct format, but not allowed by the server because of other restrictions.

REFUSE_SERVER_UNAVAILABLE 

Connection failed because the MQTT server is unavailable.

REFUSE_BAD_USERNAME 

Connection failed because the data in the username or password is in the wrong format.

REFUSE_NOT_AUTHORIZED 

Connection failed because the client is not authorized.