Go to the documentation of this file.
23 #ifndef _MQTT_CONFIG_H
24 #define _MQTT_CONFIG_H
30 #define MQTT_ROOT_TOPIC_LENGTH (50)
36 #define MQTT_MAINT_TOPIC_LENGTH (MQTT_ROOT_TOPIC_LENGTH)
42 #define MQTT_SUBSCRIBE_TOPIC_LENGTH (50)
48 #define MQTT_SENSOR_TOPIC_LENGTH (30)
54 #define MQTT_CLIENT_ID_LENGTH (MQTT_ROOT_TOPIC_LENGTH)
60 #define MQTT_MESSAGE_LENGTH (200)
66 #define MQTT_SERVER_LENGTH (30)
72 #define MQTT_USERNAME_LENGTH (30)
78 #define MQTT_PASSWORD_LENGTH (30)
84 #define MQTT_TIMEOUT_MS (6000)
90 #define MQTT_DEFAULT_SERVER ("rmap.cc")
96 #define MQTT_DEFAULT_PORT (1883)
102 #define MQTT_DEFAULT_ROOT_TOPIC ("")
108 #define MQTT_DEFAULT_MAINT_TOPIC ("")
114 #define MQTT_DEFAULT_SUBSCRIBE_TOPIC ("")
120 #define MQTT_DEFAULT_USERNAME ("")
126 #define MQTT_DEFAULT_PASSWORD ("")
132 #define MQTT_STATUS_TOPIC ("254,0,0/265,0,-,-/B01213")
138 #define MQTT_ON_CONNECT_MESSAGE ("{\"v\":\"conn\"}")
144 #define MQTT_ON_DISCONNECT_MESSAGE ("{\"v\":\"disconn\"}")
150 #define MQTT_ON_ERROR_MESSAGE ("{\"v\":\"error01\"}")
152 #if (MQTT_ROOT_TOPIC_LENGTH + MQTT_SENSOR_TOPIC_LENGTH > 100)
153 #error MQTT root/sensor topic is too big!