- Tue Dec 09, 2014 9:54 am
#4374
scargill wrote:Also what kind of number is in that clock--- ie how long before it will overflow - if we know exactly when it overflows we can work around it...
It overflows in 35 minutes. It is a signed 32 bit integer.
So, it is of no use as a long term timer.
In which case, you may as well keep your own version of time() with an appropriate offset that can be adjusted.
This does require firing a timer at least once every 30 minutes to update the "clock". That has become feasible with 7 timers.
I haven't checked, but have been meaning to - do the timers wake up Lua from deep sleep? Do GPIO interrupts?
Peter