EspMQTTClient
EspMQTTClient copied to clipboard
executeDelayed executions increases
Description of the problem
Versions
- ESPMQTTClient lib: -put version number here-
- PubSubClient lib: -put version number here-
- Arduino ESP32 / ESP8622 core: -put version number here- (To update it go to the arduino board manager and update ESP32 / ESP8266)
Hardware
- Board type : ESP32 or ESP8266 ?
- Board model : (ex: Wemos D1 Mini)
Logs
Content of the log here
C++ code
Put the content of your code here when needed
It is just a general question about executeDelayed, as I can see some weird behavior that I cannot explain.
My code does a reading of a remote sensor, and delays the next reading by 24 hours, which generally works. Unless the remote sensor is not replying, then it does an executeDelayed for 1 hour to repeat and try again.
After an extended period of time, I can see an increased number of sensor reads for a 24 hour period. It started with 2, then increased to 4, then 7, now I have 13, maybe 14 of executions. It really should be 1 read per every 24 hour.
Does the executeDelayed is persistent between reboots/power cycles. Or what is the right way to flush any executeDelayed tasks.
Thanks in advance for the answer.