mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-07 02:46:36 +00:00
add MQTT connection to user data
This commit is contained in:
1
udata.h
1
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 <pubprefix>/topic */
|
||||
int qos; /* Subscribe QoS */
|
||||
char *hostname; /* MQTT broker */
|
||||
|
||||
Reference in New Issue
Block a user