<?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>Why UART still undergoes connection after setting to scannable/non-connectable state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64546/why-uart-still-undergoes-connection-after-setting-to-scannable-non-connectable-state</link><description>Hi so I ran this example: 
 https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157426#157426 
 When I went to ble_advertising.c file and searched for ble_advertising_init 
 Under the line</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Aug 2020 08:13:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64546/why-uart-still-undergoes-connection-after-setting-to-scannable-non-connectable-state" /><item><title>RE: Why UART still undergoes connection after setting to scannable/non-connectable state</title><link>https://devzone.nordicsemi.com/thread/265007?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 08:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bfb691f-b463-4bc5-b38c-1980ee293856</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, I was Out of Office.&lt;/p&gt;
&lt;p&gt;Regarding your question, the parameters set in the advertising_init.c is just initial default parameters used as a starting point. The parameters will be changed accordingly to what is set in the main file when starting the advertisement. Meaning if you want to change the advertisement type then do it before you call the ble_advertising_init() and the change will take effect right before you start advertising.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why UART still undergoes connection after setting to scannable/non-connectable state</title><link>https://devzone.nordicsemi.com/thread/263611?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 12:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6382316f-8fa6-4c66-9af5-bfcd2b12f02c</guid><dc:creator>destiny98</dc:creator><description>&lt;p&gt;The debug terminal &amp;amp; Putty terminal just prints something along the line of &amp;quot;UART connected&amp;quot;. I think a good verification that it was connected was that I was able to send messages using Putty from peripheral to central, vice versa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why UART still undergoes connection after setting to scannable/non-connectable state</title><link>https://devzone.nordicsemi.com/thread/263532?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2020 07:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3daf5865-19ac-43b6-b8b6-ad0d14e6a08b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED; //by right this means the advertising packet is advertising but connection does not occur, however despite changing this to a nonconnectable/scannable state, the central and peripheral still connects[/quote]
&lt;p&gt;&amp;nbsp;Strange. Is the Connected event generated in the ble handler? How do you verify that it actually connects?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>