diff --git a/everblu_meters.c b/everblu_meters.c index c6a8f63..586a621 100644 --- a/everblu_meters.c +++ b/everblu_meters.c @@ -138,7 +138,7 @@ int main(int argc, char *argv[]) printf("Liters: %i\n", meter_data.liters); - if(mosquitto_publish(mosq, NULL, mqtt_topic, strlen(buff),buff,0,false) != MOSQ_ERR_SUCCESS) + if(mosquitto_publish(mosq, NULL, mqtt_topic, strlen(buff),buff,1,false) != MOSQ_ERR_SUCCESS) fprintf(stderr, "ERROR: could not publish message"); mosquitto_destroy(mosq);