<?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 set non-connectable mode in BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54933/how-to-set-non-connectable-mode-in-ble</link><description>I am trying to change after 10 seconds into non-connectable mode. I am using the below code for initializing: 
 
 I want to change mode into non-connectable using this type of advertisement method only atm.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2019 05:49:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54933/how-to-set-non-connectable-mode-in-ble" /><item><title>RE: How to set non-connectable mode in BLE</title><link>https://devzone.nordicsemi.com/thread/222505?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 05:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5f62d4-8f69-41e4-977b-cb2b534a4b34</guid><dc:creator>Ameer Usman</dc:creator><description>&lt;p&gt;Thank you for the prompt response.&lt;/p&gt;
&lt;p&gt;Actually the ble_app_beacon uses a different approach to setup the Beacon mainly using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
APP_ERROR_CHECK(err_code);

err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;m_adv_params);
APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This uses the adv_params in which the mode is fed but how can I achieve this by using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As I also have to use:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ret_code = ble_advertising_advdata_update(&amp;amp;m_advertising, &amp;amp;new_data, true);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To switch between packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set non-connectable mode in BLE</title><link>https://devzone.nordicsemi.com/thread/222344?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 12:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81410b44-21b5-45c5-a6d3-c6ef65b3691f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can refer to&amp;nbsp;\examples\ble_peripheral\ble_app_beacon on how to setup&amp;nbsp;BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>