Snapshot value of timer


#1

Hi,

Once starting a timer with adl_tmrSubscribe(), is there any way that a snapshot of the timer’s actual current value can be read? I want to be able to read the timer’s value (at a particular point in time) in order to top it up by a certain amount before it times out.

Thanks.


#2

No, there isn’t - IMO, a very basic limitation of Open-AT timers:
https://forum.sierrawireless.com/t/adl-tmrsubscribeext-and-release-of-context-memory/3264/6

When you stop a timer, you get its remaining time - so you could use that as the basis for re-starting it.


#3

Forum playing up.


#4

Or just use an Open-AT timer to give you a timebase tick, and implement your own timer from there…


#5

Thanks awneil.