add MQTT connection to user data

This commit is contained in:
Jan-Piet Mens
2016-09-07 09:18:49 +02:00
parent 6bf5f6f518
commit 1d5c55b569

View File

@@ -14,6 +14,7 @@ struct udata {
JsonNode *topics; /* Array of topics to subscribe to */
int ignoreretained; /* True if retained messages should be ignored */
#if WITH_MQTT
struct mosquitto *mosq; /* MQTT connection */
char *pubprefix; /* If not NULL (default), republish modified payload to <pubprefix>/topic */
int qos; /* Subscribe QoS */
char *hostname; /* MQTT broker */