<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 disconnect BLE from the nrf5340 device?</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88828/how-to-disconnect-ble-from-the-nrf5340-device</link><description>Hi, 
 I want to use BLE as both connectable mode and non-connectable mode in the same application. Is it possible to do that? 
 Is it possible to switch connectable BLE mode to non-connectable BLE mode? 
 I need to know how to disconnect from the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 14 Jun 2022 06:24:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88828/how-to-disconnect-ble-from-the-nrf5340-device" /><item><title>RE: how to disconnect BLE from the nrf5340 device?</title><link>https://test-devzone.nordicsemi.com/thread/372266?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 06:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79730c37-fce5-4c7c-bfbc-eed58b3873ef</guid><dc:creator>user97660</dc:creator><description>&lt;p&gt;Hi Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much for your response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Navin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disconnect BLE from the nrf5340 device?</title><link>https://test-devzone.nordicsemi.com/thread/372170?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a31aab-58dd-44e7-b912-c2d0298f71cd</guid><dc:creator>user115767</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes it is possible to switch between connectable and non connectable mode in an Application. For that take a look into Generic Access profile section of the Bluetooth. GAP---&amp;gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#:~:text=%EF%83%81-,BT_LE_ADV_CONN,-%EF%83%81"&gt; BT_LE_ADV_CONN &lt;/a&gt;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#:~:text=%EF%83%81-,BT_LE_ADV_NCONN,-%EF%83%81"&gt;BT_LE_ADV_NCONN.&lt;/a&gt;&amp;nbsp;For a reference take a look into this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;sample&lt;/a&gt;&amp;nbsp;from nRF connect SDK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I need to know how to disconnect from the device side?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For this you can make use of the function &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/connection_mgmt.html#:~:text=int%20bt_conn_disconnect(struct%20bt_conn%20*conn%2C%20uint8_t%20reason)"&gt;bt_conn_disconnect()&lt;/a&gt;. This works from the either side (central/peripheral).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>