<?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>sd_ble_gatts_hvx returns 13313 after a second device connects (no bonding)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103574/sd_ble_gatts_hvx-returns-13313-after-a-second-device-connects-no-bonding</link><description>Hello, 
 My device uses SDK 17.0.2. I&amp;#39;m connecting to it from my mobile app and enable notifications. Notifications are sent and everything works. Until my device connects to some other device - BLE led driver in my case. Once the connection to the second</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Sep 2023 07:20:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103574/sd_ble_gatts_hvx-returns-13313-after-a-second-device-connects-no-bonding" /><item><title>RE: sd_ble_gatts_hvx returns 13313 after a second device connects (no bonding)</title><link>https://devzone.nordicsemi.com/thread/445062?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 07:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c292e841-8410-4b45-a397-b64bdef6c936</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Ok. I know what the problem was. This post was unnecessary. The problem was unrelated to what I was asking about. I was using a wrong variable to get my connection handle. Sorry about that. Closing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gatts_hvx returns 13313 after a second device connects (no bonding)</title><link>https://devzone.nordicsemi.com/thread/445024?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 23:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deda3bd2-3b1b-44be-9543-735833ab9dac</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Ok. Now after some changes the situation is as followe:&lt;/p&gt;
&lt;p&gt;1. When the led driver gets connected&amp;nbsp;&lt;span&gt;sd_ble_gatts_hvx&amp;nbsp;returns 13313&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. When I reenable the notifications from the mobile app side, the&amp;nbsp;sd_ble_gatts_hvx&amp;nbsp; starts returning 8.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is because of the&amp;nbsp;sd_ble_gatts_sys_attr_set(p_abc-&amp;gt;conn_handle, NULL, 0, 0); in on_write.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I comment that out I keep getting 13313.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>