qol1?
This commit is contained in:
parent
7189754795
commit
3b741b13e2
@ -138,7 +138,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
printf("Liters: %i\n", meter_data.liters);
|
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");
|
fprintf(stderr, "ERROR: could not publish message");
|
||||||
|
|
||||||
mosquitto_destroy(mosq);
|
mosquitto_destroy(mosq);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user