Sometimes ESP falls off the WiFi and needs reseting.
Solution:
Make it reset itself.
How:
Two ESPs on the same network make HTTP requests of each other. The receipt of the HTTP request resets a timer. If the timer expires the ESP reboots.
Code: Select all
On System#Boot do
timerSet,1,60
endon
On System#Boot do
timerSet,2,300
endon
On Rules#Timer=1 do
SendToHTTP,192.168.1.23,80,/control?cmd=event%2cResetTimer //This is the IP of the other ESP on the same network
timerSet,1,60
endon
On ResetTimer do
timerSet,2,300
endon
On Rules#Timer=2 do
reboot
endon