Hi ,
I want to create a periodic task which has to run every 10 seconds, how can I create such a task?should I use threads for it? And which clock source does the task use to count 10 seconds?
Thank you for your help!
Hi ,
I want to create a periodic task which has to run every 10 seconds, how can I create such a task?should I use threads for it? And which clock source does the task use to count 10 seconds?
Thank you for your help!
Please look at any one of the examples in the SDK, pretty much every single one of which uses app_timer one way or another. app_timer will do repeated tasks for you.
The application timer tutorial might also be of interest, to learn how to use the library. Note that the API have changed slightly in the latest SDK versions. Please refer the timer library documentation.
The application timer tutorial might also be of interest, to learn how to use the library. Note that the API have changed slightly in the latest SDK versions. Please refer the timer library documentation.