<?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>EDDYSTONE ADVERTISEMENT IN CONNECTABLE MODE FROM BEGINNING</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74529/eddystone-advertisement-in-connectable-mode-from-beginning</link><description>Hello Nordic Team I want to use the ble_app_eddystone example found in SDK 15.3 on NRF52832 to advertise in connectable mode from the beginning. I tried to add nrf_ble_es_on_start_connectable_advertising() after nrf_ble_es_init(on_es_evt) but i did not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Apr 2021 10:55:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74529/eddystone-advertisement-in-connectable-mode-from-beginning" /><item><title>RE: EDDYSTONE ADVERTISEMENT IN CONNECTABLE MODE FROM BEGINNING</title><link>https://devzone.nordicsemi.com/thread/307209?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 10:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84250dc3-8665-41a8-82f4-46a0c8d1583c</guid><dc:creator>FatihAlparslan</dc:creator><description>&lt;p&gt;Thank you, it is working now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: EDDYSTONE ADVERTISEMENT IN CONNECTABLE MODE FROM BEGINNING</title><link>https://devzone.nordicsemi.com/thread/307207?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 10:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46137577-b6db-4b4a-945b-eacd7d4486d6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;With this you get a&amp;nbsp;BLE_ERROR_INVALID_ADV_HANDLE returned from the call to&amp;nbsp;sd_ble_gap_adv_stop() on line 158 in es_adv.c. One fix is to wait a bit so that everything is in place and then do this. A simpler and perhaps better approach as we understand what happens here is to just add special handlign for&amp;nbsp;BLE_ERROR_INVALID_ADV_HANDLE in the implementation of the&amp;nbsp;adv_stop() function in es_adv.c so that it looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void adv_stop(void)
{
    ret_code_t err_code;

    err_code = sd_ble_gap_adv_stop(*mp_adv_handle);
    if (err_code != NRF_ERROR_INVALID_STATE &amp;amp;&amp;amp; err_code != BLE_ERROR_INVALID_ADV_HANDLE)
    {
        APP_ERROR_CHECK(err_code);
    }

    es_adv_timing_stop();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this modification you can safely call&amp;nbsp;nrf_ble_es_on_start_connectable_advertising() after nrf_ble_es_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>