- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From bleapptimer.h:
// This function will start a fine resolution timer. It should be used with care.
// The timeout is in ms unit.
void bleapptimer_startFineTimer( BLEAPP_TIMER_CB cb, INT16 timeOut);
I noticed a problem with timeOut:
for timeOut = 1000 callback is called about every 12 sec, for timeOut = 100 - every 1 sec.
Is this a bug in bleapptimer_startFineTimer ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes we will correct the documentation on the api header, thanks for pointing this out.
Also as we mentioned the time is based out of 12.5 OS ticks. So if you would like to use this timer consider the OS ticks instead of ms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We spoke to the developers about this request and it appears that the timer is fine.
Some things to note:
- The timeout parameter is not in mS, its in OS ticks
- This API should not be used by the application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then there is a bug in the function comment in bleapptimer.h which says that the timeout is in ms.
What is the proper API for application to stop/start fine timer ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes we will correct the documentation on the api header, thanks for pointing this out.
Also as we mentioned the time is based out of 12.5 OS ticks. So if you would like to use this timer consider the OS ticks instead of ms.