* qos: 0 for publishers, 2 for subscribers
* store_rates: true
* clean_session: true
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);