STIMA  3
Macros
mqtt_config.h File Reference

Go to the source code of this file.

Macros

#define MQTT_ROOT_TOPIC_LENGTH   (50)
 Length in bytes for mqtt root topic.
 
#define MQTT_MAINT_TOPIC_LENGTH   (MQTT_ROOT_TOPIC_LENGTH)
 Length in bytes for mqtt maint topic.
 
#define MQTT_SUBSCRIBE_TOPIC_LENGTH   (50)
 Length in bytes for mqtt subscibe topic.
 
#define MQTT_SENSOR_TOPIC_LENGTH   (30)
 Length in bytes for mqtt sensor topic.
 
#define MQTT_CLIENT_ID_LENGTH   (MQTT_ROOT_TOPIC_LENGTH)
 Length in bytes for mqtt client id.
 
#define MQTT_MESSAGE_LENGTH   (200)
 Length in bytes for mqtt message.
 
#define MQTT_SERVER_LENGTH   (30)
 Length in bytes for mqtt server.
 
#define MQTT_USERNAME_LENGTH   (30)
 Length in bytes for mqtt username.
 
#define MQTT_PASSWORD_LENGTH   (30)
 Length in bytes for mqtt password.
 
#define MQTT_TIMEOUT_MS   (6000)
 Timeout in milliseconds for mqtt stack.
 
#define MQTT_DEFAULT_SERVER   ("rmap.cc")
 Default MQTT server.
 
#define MQTT_DEFAULT_PORT   (1883)
 Default MQTT server port.
 
#define MQTT_DEFAULT_ROOT_TOPIC   ("")
 Default MQTT root topic.
 
#define MQTT_DEFAULT_MAINT_TOPIC   ("")
 Default MQTT maint topic.
 
#define MQTT_DEFAULT_SUBSCRIBE_TOPIC   ("")
 Default MQTT subscibe topic.
 
#define MQTT_DEFAULT_USERNAME   ("")
 Default MQTT username.
 
#define MQTT_DEFAULT_PASSWORD   ("")
 Default MQTT password.
 
#define MQTT_STATUS_TOPIC   ("254,0,0/265,0,-,-/B01213")
 Default MQTT status topic for printing on connect/disconnect message.
 
#define MQTT_ON_CONNECT_MESSAGE   ("{\"v\":\"conn\"}")
 MQTT on connect message.
 
#define MQTT_ON_DISCONNECT_MESSAGE   ("{\"v\":\"disconn\"}")
 MQTT on disconnect message.
 
#define MQTT_ON_ERROR_MESSAGE   ("{\"v\":\"error01\"}")
 MQTT on error message.