caedm / wall-ink

ESP8266 based e-ink conference room scheduler display. Repurposable through PHP-based server plugins to display any image. Outlook, Exchange, Booked, Google Calendar API and iCal server scheduler support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change the amount of time that the device sleeps for when a problem happens

AndersenJ opened this issue · comments

Right now, if something is preventing a device from successfully checking in, it will sleep for the following amounts of time, going 1 step down the list each time it gives it another try:
1 minute
4 minutes
16 minutes
1 hour
4 hours
16 hours
1 day
1 day
1 day
etc.

If something happens in the late evening, by the time it is fixed in the morning these devices will be set to sleep for an entire day, and we need to go around rebooting each one. Not fun.
I've been asked to make it look something more like this:
1 minute
5 minutes
15 minutes
30 minutes
30 minutes
30 minutes
30 minutes
2 hours
2 hours
2 hours
2 hours
4 hours
4 hours
4 hours
4 hours
etc.

This is finished and tested as of commit 83fd483.