<?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 advertise for less than one second with nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9828/how-to-advertise-for-less-than-one-second-with-nrf51422</link><description>I would like to ask how to make advertisements which are less than one second. In my application, i need to scan for devices, when i find my specific device, i start to advertise with specific data. I know that i can advertise for 1 second by setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Oct 2015 23:14:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9828/how-to-advertise-for-less-than-one-second-with-nrf51422" /><item><title>RE: How to advertise for less than one second with nrf51422</title><link>https://devzone.nordicsemi.com/thread/36480?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 23:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441e8ce9-c877-42b6-9e0c-5a2b6373d64a</guid><dc:creator>Audun</dc:creator><description>&lt;p&gt;You should be able to call sd_ble_gap_adv_stop() to stop advertising after less than one second&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise for less than one second with nrf51422</title><link>https://devzone.nordicsemi.com/thread/36481?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 20:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:053527ef-3df7-4ae9-a350-1cce14069d4a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi, I am no aware of a event that is returned every time an advertising event occurs. There may be one, but I didn&amp;#39;t find one in my quick look around. You can use radio notifications for sure as you should get one prior to each advertising event. You could also just set a 400 mS timer and use that to call the stop advertising function as well. You&amp;#39;d probably want to make the timer a little longer than 400 mS just to make sure the last advertisement got out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise for less than one second with nrf51422</title><link>https://devzone.nordicsemi.com/thread/36479?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 17:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85d2b18-7597-4cf0-934d-b66ea75391ff</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;I&amp;#39;ll accept your answer, but before that could you tell me an answer to this question then: Lets say im advertising each 100ms, and after 400ms or 4 advertising events i want to stop. Obviously then, i set advertising timeout to zero. So is there any callback which gets triggered when advertising event happens? I mean, how do i know that advertising event already happened? Or i should use radio notifications and make some counter value which i increment every time radio event happens, and when counter reaches some value (4 in this case), i just stop the advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise for less than one second with nrf51422</title><link>https://devzone.nordicsemi.com/thread/36478?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 16:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e3de44-f095-48c6-a60b-943cc6387b09</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Advertising timeout controls how long you advertise before stopping, the advertising interval controls how long between advertising events. If you want to advertise repeatedly for an interval less than 1 second, set the advertising timeout to zero and the interval to your sub-second interval. It becomes a bit more cumbersome if you only want to emit one advertisement before stopping, then you would probably need to use the radio notification feature so you could stop advertising after the first advertising event.&lt;/p&gt;
&lt;p&gt;Its tough to give you a more specific answer without going into a ton of detail without knowing exactly what advertising pattern you are attempting to achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>