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