summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82bd9cf)
raw | patch | inline | side by side (parent: 82bd9cf)
author | Florian Forster <octo@collectd.org> | |
Fri, 3 Jul 2015 08:45:37 +0000 (10:45 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 6 Jul 2015 12:07:11 +0000 (14:07 +0200) |
* qos: 0 for publishers, 2 for subscribers
* store_rates: true
* clean_session: true
* store_rates: true
* clean_session: true
src/mqtt.c | patch | blob | history |
diff --git a/src/mqtt.c b/src/mqtt.c
index acc514c52ec0ae85110e72fa1465bedc3ea42ec2..b5e40aec4909563b96fffd4426ac28c3452e8017 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
conf->host = strdup (MQTT_DEFAULT_HOST);
conf->port = MQTT_DEFAULT_PORT;
conf->client_id = NULL;
+ conf->qos = 0;
conf->topic_prefix = strdup (MQTT_DEFAULT_TOPIC_PREFIX);
+ conf->store_rates = 1;
C_COMPLAIN_INIT (&conf->complaint_cantpublish);
conf->host = strdup (MQTT_DEFAULT_HOST);
conf->port = MQTT_DEFAULT_PORT;
conf->client_id = NULL;
+ conf->qos = 2;
conf->topic = strdup (MQTT_DEFAULT_TOPIC);
+ conf->clean_session = 1;
C_COMPLAIN_INIT (&conf->complaint_cantpublish);