From 1d5c55b569232f944e1cffb5d6be71b7afcfd58a Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 7 Sep 2016 09:18:49 +0200 Subject: [PATCH] add MQTT connection to user data --- udata.h | 1 + 1 file changed, 1 insertion(+) diff --git a/udata.h b/udata.h index 780eb86..de3cd60 100644 --- a/udata.h +++ b/udata.h @@ -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 /topic */ int qos; /* Subscribe QoS */ char *hostname; /* MQTT broker */