Hey, I have created a Iot dashboard to water my plants with a esp8266.
void watering(int timeWater) {
wateringFeedback = true;
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(16, HIGH);
delay(timeWater * 1000);
digitalWrite(16, LOW);
digitalWrite(LED_BUILTIN, LOW);
wateringFeedback = false;
}
the wateringFeedback var is connected to widget:
As soon as I call the watering function, the pin is turned on and the led on the board also.
But the led widget stays the same...
The var wateringFeedback is changing its value on change.
Does someone maybe know what I am doing wrong?
Thanks!