<?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>Switching between connectable and non connectable advertising - not getting advertising to stop</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72763/switching-between-connectable-and-non-connectable-advertising---not-getting-advertising-to-stop</link><description>Hi community, 
 
 I have recently purchased the DK and have started developing my application. What I wish for it to to is able to change between connectable and non-connectable states. 
 
 I have used the the BLE_APP_UART example and copied the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 13:46:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72763/switching-between-connectable-and-non-connectable-advertising---not-getting-advertising-to-stop" /><item><title>RE: Switching between connectable and non connectable advertising - not getting advertising to stop</title><link>https://devzone.nordicsemi.com/thread/300160?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:163a58ed-8287-4951-b92d-6104b81ee1c3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I did something similiar a while ago where I modified the ble_app_hrs example to make it broadcast beacon packets during connections. Maybe it&amp;#39;s not exactly what you want to do here, but I have included the project below if you want to compare changes.&lt;/p&gt;
[quote user=""]However, after stopping the advertising the non_connectable portion does not start up again.[/quote]
&lt;p&gt;Have you verified through debugging that advertising_start_NonConnectable() actually gets called, or is it possible that the program may have ended up in the error handler (&lt;span&gt;&lt;a title="Error module" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_error.html?cp=7_1_3_13"&gt;Error module&lt;/a&gt;&lt;/span&gt;)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ble_app_hrs_beacon project&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK_5F00_15.2.0_5F00_ble_5F00_app_5F00_hrs_5F00_beacon.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK_5F00_15.2.0_5F00_ble_5F00_app_5F00_hrs_5F00_beacon.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>