Open mattwilliamson opened 7 years ago
For me, I'm using a GPS to get the current time and calculate sunset and sunrise to open and close a door. As soon as I get the time from satellites, I can sleep until the next time I need to open or close.
я исправил в двух местах его библиотеки с uint8_t на uint32_t и время сна с макс 4,25 мин увеличилось до макс ~135 лет... ))
Thank you for useful library. I hope to change from uint8_t to uint32_t.
The signature is
void sleepAndWakeUp(SleepMode mode, RTClock *rt, uint8_t seconds);
So 8 bits which gives us 255s or 4.25 minutes. Is there any reason not to use uint32_t so we can sleep longer?