@@ -7,10 +7,10 @@ struct DeviceState {
77 unsigned long duration;
88};
99
10- DeviceState waterPump = {false , 0 , 10000 }; // 10 seconds for water
11- DeviceState nutesPump = {false , 0 , 6000 }; // 6 seconds for nutrients
12- DeviceState acidPump = {false , 0 , 15000 }; // 15 seconds for acid
13- DeviceState basePump = {false , 0 , 15000 }; // 15 seconds for base
10+ DeviceState waterPump = {false , 0 , 4000 }; // 4 seconds for water
11+ DeviceState nutesPump = {false , 0 , 4000 }; // 4 seconds for nutrients
12+ DeviceState acidPump = {false , 0 , 4000 }; // 4 seconds for acid
13+ DeviceState basePump = {false , 0 , 4000 }; // 4 seconds for base
1414
1515char device_id[40 ];
1616
@@ -161,5 +161,5 @@ void WiFiAndMQTTClient::publish(const char* topic, float value) {
161161 snprintf (print_msg, 100 , " --- publishing message in topic %s ---" , topic_with_device_id);
162162 Serial.println (print_msg);
163163 Serial.println (msg);
164- (*wmm).client ->publish (MQTT::Publish ( topic_with_device_id, msg). set_qos ( 1 ) );
164+ (*wmm).client ->publish (topic_with_device_id, msg);
165165}
0 commit comments