<?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>SoftDevice automatically stop advertising on connection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69933/softdevice-automatically-stop-advertising-on-connection</link><description>Again, if the search engine in your documentation were decent, I would probably not need to ask this question here. The answer probably exists, but try an find it not knowing where it is! 
 The answer to this question appears to be yes, at least when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Dec 2020 15:15:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69933/softdevice-automatically-stop-advertising-on-connection" /><item><title>RE: SoftDevice automatically stop advertising on connection?</title><link>https://devzone.nordicsemi.com/thread/286750?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 15:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ddeac4-4be5-4446-a58e-978df06c9579</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Your reference says nothing about the fact that the connectable advertisement is automatically stopped on connection. I know the spec requires it but what I don&amp;#39;t know is if I have to do it or whether SoftDevice does it. SoftDevice DOES give me the means to stop it myself.&lt;/p&gt;
&lt;p&gt;Using the pc-ble-driver I have found out that the adv is automatically stopped.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SoftDevice automatically stop advertising on connection?</title><link>https://devzone.nordicsemi.com/thread/286724?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 13:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddc1ce85-2048-41f7-a86a-dc645b1ca405</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user=""]The question is, when I port this code over to the nRF51822 will I need to stop the advertisement myself calling &lt;span&gt;sd_ble_gap_adv_stop(). or is it automatically done when receiving a connection event?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;It&amp;#39;s stopped automatically when a connection is established. API documentation for reference: &lt;span&gt;&lt;a title="sd_ble_gap_adv_start" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=5_7_2_2_2_1_2_3#gab82c978db30188c7f4fbf2dac1d97720"&gt;sd_ble_gap_adv_start&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>