<?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>Notifying the nRF52840 when Bluetooth connection shall be terminated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66555/notifying-the-nrf52840-when-bluetooth-connection-shall-be-terminated</link><description>Hi, 
 I am trying to disconnect an Android smartphone from the nRF52840. After trying for some time we found out that the BLE stack of Android does not reliably closes a Bluetooth connection (also according to some forums). Now we plan to implement a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2020 09:55:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66555/notifying-the-nrf52840-when-bluetooth-connection-shall-be-terminated" /><item><title>RE: Notifying the nRF52840 when Bluetooth connection shall be terminated</title><link>https://devzone.nordicsemi.com/thread/272470?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 09:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:515194b7-afb1-469f-bd75-1f0aa1f76fb4</guid><dc:creator>AHass</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, in the meantime we already decided to implement our own service. It is easier and more consistent.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Notifying the nRF52840 when Bluetooth connection shall be terminated</title><link>https://devzone.nordicsemi.com/thread/272367?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 15:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d03752e-0301-4080-a5d4-c1a092a4caee</guid><dc:creator>awneil</dc:creator><description>[quote userid="93650" url="~/f/nordic-q-a/66555/notifying-the-nrf52840-when-bluetooth-connection-shall-be-terminated"]A first idea was to reuse a BLE GAP event that we do not use otherwise.[/quote]
&lt;p&gt;Sounds a bad idea.&lt;/p&gt;
&lt;p&gt;Better would be to create your own characteristic/service to initiate a Disconnect.&lt;/p&gt;
&lt;p&gt;Or, if you&amp;#39;re using NUS, devise some sort of &amp;#39;Disconnect&amp;#39; command to be sent over the NUS link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>