https://github.com/paul-reed/router-reboot
https://github.com/paul-reed/router-reboot
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paul-reed/router-reboot
- Owner: Paul-Reed
- Created: 2019-02-26T21:26:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T19:40:36.000Z (over 7 years ago)
- Last Synced: 2025-03-29T13:05:33.899Z (over 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# router-reboot
This sketch performs the following actions;
1) Connects to local wifi
2) Every 20 minutes, it pings 'google' (and if no reply - then 'cloudflare') and if it gets
a response, the ESP will go to deep sleep mode for 20 mins, then repeat.
3) If no reply is received from either, the sketch enters a loop, rechecking google &
cloudflare, for a further 4 times, 1 minute apart.
4) If no reply is received, the relay will remove power to the router for 5
seconds causing a router reboot.
5) ESP will then go into deep sleep for 5 minutes to allow the router to
stabilise.