<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23868/nrf52-iot-sdk-run-function-periodically</link><description>I am using a nrf52 DK and running the IOT Cloud CoAP Client example in the SDK. I need to run multiple functions periodically, and I need to be able to change the periods at which the functions run at dynamically. The example is making use of iot_timer_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Aug 2017 18:46:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23868/nrf52-iot-sdk-run-function-periodically" /><item><title>RE: nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/thread/93912?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 18:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4aeee59-0de2-4d6d-80cc-bcf83fa9c0ee</guid><dc:creator>amjabb</dc:creator><description>&lt;p&gt;Thank you for your help. I was able to continue using the RTC1 peripheral with the app_timer working along side the iot_time. For anyone who is looking at this as well I am sending up to five messages periodically using app_time, however I am doing significant data validation on the receiving end.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/thread/93909?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 14:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f448b677-9d2e-43d7-af97-a9c7889b8e28</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;It appears that the iot_timer and the app_timer uses the same RTC periperal (RTC1). The app_timer library is hardcoded to use RTC so I would not recommend modifying it. Instead I would use RTC2 directly with the nrf_drv_rtc.c and use that to call your periodic functions. See the RTC peripheral example in the examples\peripheral\rtc folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/thread/93908?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 17:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b54d4f-d0d1-47f8-9564-9a099fd834ad</guid><dc:creator>amjabb</dc:creator><description>&lt;p&gt;I attempted following the tutorial on app_timer and it seems to be working, however it is never switching back to my iot timer once the timer is turned on. Also I should mention that the function which I am sending periodically are coap requests, so perhaps they are bound to the iot_timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/thread/93911?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 16:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84dbc1e-615d-4bd7-b842-fd63f4f8f6a0</guid><dc:creator>amjabb</dc:creator><description>&lt;p&gt;Would this work with the iot_timer running at the same time, also would I be able to change the period at which it runs dynamically or does it just initialize it once?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrF52 IOT SDK Run function periodically</title><link>https://devzone.nordicsemi.com/thread/93910?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef89ff3-7628-4386-9d18-d73644326cd9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I think the easiest approach is to use the application timer library(app_timer.c) to create repeating timers and  call you functions periodically from their timeout callbacks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>