<?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>Advertise Specific Number of  Packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21800/advertise-specific-number-of-packet</link><description>Hello
i am using Nrf52840 with sdk 132 and version 12.2 
 i am using the Heart Rate example as template.now i am just testing.
Before making connection,i like to Advertise Specific Number of Packet for example one Packet.
then i will change the data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2017 12:35:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21800/advertise-specific-number-of-packet" /><item><title>RE: Advertise Specific Number of  Packet</title><link>https://devzone.nordicsemi.com/thread/85648?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 12:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a14ad702-d5b0-4488-8575-55de46d753de</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You will have 10 advertising events, in each event you are sending one advertisment on the three advertising channels, see &lt;a href="https://devzone.nordicsemi.com/blogs/782/bluetooth-smart-and-the-nordics-softdevices-part-1/"&gt;this&lt;/a&gt; for more information.
You can stop the advertising in the callback you set with ble_radio_notification_init(), but you don&amp;#39;t need to stop advertising to change the advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Specific Number of  Packet</title><link>https://devzone.nordicsemi.com/thread/85647?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 12:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc16387e-4768-4399-9bb7-53e5e40df7ed</guid><dc:creator>All4here</dc:creator><description>&lt;p&gt;so my advertising interval is 100 ms. but the timeout parameter is in second. if i put the minimum value of 1 second, means at least he will advertise 10 packet according to theory.&lt;/p&gt;
&lt;p&gt;so this will not be perfectly controlled using this method.&lt;/p&gt;
&lt;p&gt;is this possible if i stop the advertising in the  ble_radio_notification_init handler ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Specific Number of  Packet</title><link>https://devzone.nordicsemi.com/thread/85646?ContentTypeID=1</link><pubDate>Thu, 04 May 2017 09:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:448cc33b-2f48-4c71-9fa4-b88d268eb35c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You don&amp;#39;t really specify the number of packets that will be advertised, but you specify an advertising interval and and advertising timeout. So it is easy for example to change the advertising data every time you get this timeout for example.&lt;/p&gt;
&lt;p&gt;If you want to change the advertising data on every packet have a look at &lt;a href="https://devzone.nordicsemi.com/question/98697/changing-advertisement-data-in-every-packet/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>