<?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 stop advertising in eddystone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28756/how-to-stop-advertising-in-eddystone</link><description>Hello , 
 I&amp;#39;m using ble_app_eddystone example and I would like to stop the advertising and TLM when I press button 2. I able to create a correctly inicialization of button and your respective event on scheduler. But I couldn&amp;#39;t found a function to stop</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jan 2018 13:55:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28756/how-to-stop-advertising-in-eddystone" /><item><title>RE: How to stop advertising in eddystone</title><link>https://devzone.nordicsemi.com/thread/113945?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2018 13:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8099a300-95ab-4dc6-ab85-b95c290edaae</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Leoni.&lt;br /&gt;
It&amp;#39;s not in the es_adv.h file, but in the C file (es_adv.c).&lt;br /&gt;
If you take a look at the bottom of the C file (aprox. line 225) you can see that when the BLE_GAP_EVT_DISCONNECTED event is received, the adv_stop() function is called.&lt;br /&gt;
Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop advertising in eddystone</title><link>https://devzone.nordicsemi.com/thread/113946?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 14:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b137db-4a08-4836-995e-903e981dd106</guid><dc:creator>Leoni</dc:creator><description>&lt;p&gt;Thanks Joakim, I was using only &amp;quot;sd_ble_gap_adv_stop()&amp;quot;. but the beacon still waking up and transmit advertising.&lt;/p&gt;
&lt;p&gt;About the function mentioned, I checked but, when a put in my main code, I get undefined reference to `adv_stop&amp;#39; error during compile the application.
I looked es_adv.h and doesn&amp;#39;t have adv_stop prototype. How can I correctly call this function?&lt;/p&gt;
&lt;p&gt;PS: I&amp;#39;m using SDK 14.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop advertising in eddystone</title><link>https://devzone.nordicsemi.com/thread/113944?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 10:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0d9c9b-0d1e-44e1-84d4-f7b69885779d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Leoni!&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know which SDK you are working with, but if you take a look at the es_adv.c you will find the function;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void adv_stop(void)
{
    ret_code_t err_code;

    err_code = sd_ble_gap_adv_stop();
    if (err_code != NRF_ERROR_INVALID_STATE)
    {
        APP_ERROR_CHECK(err_code);
    }

    es_adv_timing_stop();
} 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That should be what you need?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>