<?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>Disconnect on notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67683/disconnect-on-notification</link><description>I get disconnected when receiving notification from characterisitc. 
 Everything looks fine in nRF Connect app - screenshot below: 
 
 Strange behavior begins when I am trying to run my central code. On notification event board is being disconnected log</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Oct 2020 09:49:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67683/disconnect-on-notification" /><item><title>RE: Disconnect on notification</title><link>https://devzone.nordicsemi.com/thread/277319?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 09:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7658d7f-7850-4678-808f-71f9687a2650</guid><dc:creator>Jakub</dc:creator><description>&lt;p&gt;Hmmm.. I guess I forgot to add break in case statement....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect on notification</title><link>https://devzone.nordicsemi.com/thread/277249?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 20:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d45f15-68f4-46c6-a84d-3d36fd911051</guid><dc:creator>Jakub</dc:creator><description>&lt;p&gt;Some more info. GAP never reaches disconnect event. Disconnect message in provided logs originates from&amp;nbsp;BLE_ESS_C_EVT_DISCONNECTED. I also added some more debug logs and it seems that data inside hvx is correct:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; ble_ess: p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[0] = 0xDB&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; ble_ess: p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[1] = 0x2&lt;br /&gt;&amp;lt;info&amp;gt; ble_ess: p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.len = 2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnect on notification</title><link>https://devzone.nordicsemi.com/thread/277235?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 19:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1498a9eb-251e-40d1-8624-8f8b4bfdf1c1</guid><dc:creator>Jakub</dc:creator><description>&lt;p&gt;Forgot to add, first code is environmental sensing service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>