<?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>Properly disconnection in central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60470/properly-disconnection-in-central-device</link><description>Hi. I&amp;#39;m working on central device which is connecting to peripheral device. I used blinky example, modified characteristics to my needs and it works fine. 
 Now I try to do scenario: after switch button, I&amp;#39;m starting to scan, connect, exchange information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Apr 2020 06:06:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60470/properly-disconnection-in-central-device" /><item><title>RE: Properly disconnection in central device</title><link>https://devzone.nordicsemi.com/thread/246147?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 06:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07726e17-b774-4d59-baa7-206ab11c357a</guid><dc:creator>PW</dc:creator><description>&lt;p&gt;Works fine, thanks :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Properly disconnection in central device</title><link>https://devzone.nordicsemi.com/thread/246028?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 12:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6c9c0a-960e-409b-97bc-c4067e3f2e85</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You get the conn_handle in the connected event, so you can save it. E.g. the ble_app_uart example the conn handle is saved in the BLE_GAP_EVT_CONNECTED event in main.c:&lt;/p&gt;
&lt;p&gt;m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;/p&gt;
&lt;p&gt;Remember to reset the conn_handle in the BLE_GAP_EVT_DISCONNECTED event:&lt;/p&gt;
&lt;p&gt;m_conn_handle = BLE_CONN_HANDLE_INVALID;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>