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