<?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 send a single advertisement event?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19191/how-to-send-a-single-advertisement-event</link><description>Hi, 
 Is it possible to send a advertisements for a single (or a fixed number of) Advertising Events? I need to control the number of Advertising Events &amp;quot;sent&amp;quot; for a mesh application. 
 The method I use to day is to start an app_timer, set to a short</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Jan 2017 23:53:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19191/how-to-send-a-single-advertisement-event" /><item><title>RE: How to send a single advertisement event?</title><link>https://devzone.nordicsemi.com/thread/74329?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 23:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765b7d9c-407a-48a1-ac51-232417d8b5eb</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Elm,&lt;/p&gt;
&lt;p&gt;In case your precision must be better then 1-second resolution of &lt;code&gt;p_adv_params.timeout&lt;/code&gt; parameter - which you put into &lt;code&gt;sd_ble_gap_adv_start(...)&lt;/code&gt; function call during advertisement start-up - then I recommend to enable &lt;code&gt;ble_radio_notification&lt;/code&gt; module with respective callback which will notify your app before and/or after every adv. interval so you can put the counter there and stop it whenever you are done. Just note that you will get notifications also on every connection interval so be careful when you run advertisement simultaneously to any BLE connection.&lt;/p&gt;
&lt;p&gt;You can see some example code &lt;a href="https://devzone.nordicsemi.com/question/56603/nrf-master-control-panel-for-android-crashes-when-displaying-details-of-fast-advertising-peripheral/#64925"&gt;here&lt;/a&gt; (also in SDK and many places of this forum).&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>