<?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>nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63807/nrf52840-sdk16-s140--</link><description>Hi everyone, 
 I am using nRF52840 to prototype and I want on certain occations to disconnect the peripheral from the central. On of these occations is when I charge my device. I tried the following snippet on the main for(;;) loop but it doesn&amp;#39;t work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jul 2020 15:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63807/nrf52840-sdk16-s140--" /><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260641?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 15:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d996cec0-175e-44bc-a076-9459d41fe1a4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;but every occurrence there is within some sort of conditional - so the question is, as &lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt; said, &lt;strong&gt;are they ever actually &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;called&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;And: &amp;quot;what is the returned value?&amp;quot;&lt;/p&gt;
&lt;p&gt;Please don&amp;#39;t post code as pictures:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0211._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260619?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 14:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32aa8236-e22a-4554-b646-6d4ecde38bf0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;We already know that the function is in your code, what we do not know is if it&amp;#39;s ever called.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Enter a debug session and verify that that sd_ble_gap_disconnect is actually called and that it returns NRF_SUCCESS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260607?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 13:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f31fed09-e9b1-4556-a500-e788bd695b82</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thank you for you answer guys!!&lt;/p&gt;
[quote userid="13562" url="~/f/nordic-q-a/63807/nrf52840-sdk16-s140--/260196"]Do you at any point in time actually call&amp;nbsp;sd_ble_gap_disconnect?[/quote]
&lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_62.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_61.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And also at&amp;nbsp;ble_evt_handler(ble_evt_t const *p_ble_evt, void *p_context)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_63.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260199?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 15:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e46df653-0038-4073-83da-354b5a637566</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;and, if it does get called, what does it return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260196?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 15:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1413b496-e26a-405c-b0c5-3d183d7b37db</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you at any point in time actually call&amp;nbsp;sd_ble_gap_disconnect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260189?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 14:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f2df143-cffc-4fe3-9ee3-08fea54f963a</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t disconnected..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 SDK16 s140 -</title><link>https://devzone.nordicsemi.com/thread/260187?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 14:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366eb06b-c48e-4a17-9903-74bf1b42c996</guid><dc:creator>awneil</dc:creator><description>[quote userid="87871" url="~/f/nordic-q-a/63807/nrf52840-sdk16-s140--"]it doesn&amp;#39;t work[/quote]
&lt;p&gt;What, exactly,&amp;nbsp; goes wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>