This commit is contained in:
leo 2023-07-10 19:43:35 +02:00
parent 7189754795
commit 3b741b13e2
Signed by: leo
GPG Key ID: 0DD993BFB2B307DB

View File

@ -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);