ESP8266 ESP-12E/Arduino needs a 20hr Delay
Posted: Wed Jun 07, 2017 8:09 am
I am in need of a delay replacement that will pause the entire loop for upward of 20hrs.
Traditional delay works fine for a 1 hour delay. Anything past that and code locks up.
See attached sketch. My troublesome delay is at line 125.
Scenario - LDR sensor trips at designated low light threshold. Once tripped WiFi turns on, sends POST to IFTTT, WiFi turns off, Delay begins. (Delay is needed so the LDR doesn't continue to sense low-light overnight.)
Please take a look and let me know what you think.
Thanx,
JohnnyFRX