<?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>How to vary the LEDs blink rate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5116/how-to-vary-the-leds-blink-rate</link><description>Hi all, 
 I am trying to figure out how to change the LEDs blink rate on the go. 
 I have set up the timers_init() and let say every 500ms sensor data is read on dev kit and transmitted to a smart phone. According to the sensor data I want to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jan 2015 10:58:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5116/how-to-vary-the-leds-blink-rate" /><item><title>RE: How to vary the LEDs blink rate</title><link>https://devzone.nordicsemi.com/thread/17977?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 10:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836106a5-0974-4747-ad80-b3f9312cb7bf</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Thanks for reply. I thought that the  BATTERY_LEVEL_MEAS_INTERVAL applies only once during initialisation. (Currently 2000ms) Right? Or do you suggest that I can call the app_timer_start(m_battery_timer_id, BATTERY_LEVEL_MEAS_INTERVAL, NULL); function again in order to modify the timers rate? That would be a solution.&lt;/p&gt;
&lt;p&gt;Yeap the update shows what I was looking for.
Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to vary the LEDs blink rate</title><link>https://devzone.nordicsemi.com/thread/17976?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 10:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c2dbc2f-9f99-4f33-a1da-7bd3485c89b6</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you look at for example ble_app_bps in nRF51 SDK 7.1.0, there are two function calls in the main function for the application timers, timers_init() and application_timers_start(). If you look at application_timers_start(), the battery service timer is started with:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app_timer_start(m_battery_timer_id, BATTERY_LEVEL_MEAS_INTERVAL, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Changing the value of the BATTERY_LEVEL_MEAS_INTERVAL constant will change interrupt frequency of this application timer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 14.1.2014&lt;/strong&gt;
If you want to update the application timer update freqeuency dynamically, I think the best way to do that is to stop the timer and start it again with a new value. Some discussion about that is on &lt;a href="https://devzone.nordicsemi.com/question/13454/best-way-to-reload-an-app-timer-with-a-new-value/"&gt;this thread&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>