<?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 set timer delay for each of data for sending  from nrf52840 to android apps ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54442/how-to-set-timer-delay-for-each-of-data-for-sending-from-nrf52840-to-android-apps</link><description>I have followed this tutorial from this link but cannot get it work. 
 
 
 I have 3 loop. For the first loop of sending data it will have a delay about 1s and until 2 finish. But there is no delay and it does not work.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2019 10:40:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54442/how-to-set-timer-delay-for-each-of-data-for-sending-from-nrf52840-to-android-apps" /><item><title>RE: How to set timer delay for each of data for sending  from nrf52840 to android apps ?</title><link>https://devzone.nordicsemi.com/thread/221028?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 10:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1e6a6e-894b-42d5-9fa1-a11eb1ccfed1</guid><dc:creator>ox00</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;nrf_delay_ms();&amp;nbsp; Using this function solve all my problem. It sequence is in order.Both sending &amp;amp; receiving data get complete data.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set timer delay for each of data for sending  from nrf52840 to android apps ?</title><link>https://devzone.nordicsemi.com/thread/220410?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2019 01:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ada6fed8-7d7c-4d7b-b2de-859c359c5fa6</guid><dc:creator>ox00</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Thanks bro for helping. Yes I cannot find the timer in the link. I will try to use the example.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set timer delay for each of data for sending  from nrf52840 to android apps ?</title><link>https://devzone.nordicsemi.com/thread/220354?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 14:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f9ea5d8-5f1c-49b3-b4af-b24ee8ef9932</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The timer setup you use is something you haven&amp;#39;t found in your link, right?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what you expect, but I suspect that you expect the app_timer_create() and app_timer_start() to delay your application for 1 sec. Unfortunately it does not. Besides, you should check the return values from the functions that return values, such as app_timer_create() and app_timer_start. You will see that these will probably not return NRF_SUCCESS, at least not the second time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to send a notification every 1000ms, you can trigger this from the interrupt handler in the timer, which looks like the uart_event_handle. You should create a separate event handler, not share it with the uart_event_handle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The point of the&amp;nbsp;APP_TIMER_MODE_REPEATED is that it will reset once you get the timeout event, so you should only start it once.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Look at how the app_timer is used in the ble_app_hrs example. It uses this timer to send a new battery status notification on every timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>