<?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>Multilink client GATTC event handler not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10632/multilink-client-gattc-event-handler-not-working</link><description>Hi! I am working on a project that uses the Multilink example. On the client (nRF51422 w. SD 120) my program crashes and starts the main loop again after a few seconds. I have narrowed it down to in the client_handling.c file in the client_handling_ble_evt_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Dec 2015 13:20:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10632/multilink-client-gattc-event-handler-not-working" /><item><title>RE: Multilink client GATTC event handler not working</title><link>https://devzone.nordicsemi.com/thread/39666?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 13:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b0d62e-6653-4b40-a788-a8f465d92659</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;&lt;code&gt;sd_ble_gatts_hvx(...)&lt;/code&gt; will do &lt;code&gt;sd_ble_gatts_value_set(...)&lt;/code&gt; and send the value as a notification (if this is enabled). It looks fine to me. Could you update your post with the code (both peripheral and central) so I can try it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink client GATTC event handler not working</title><link>https://devzone.nordicsemi.com/thread/39667?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2015 09:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8130f84e-4a16-4097-99a7-1b9b763c3369</guid><dc:creator>Christian E</dc:creator><description>&lt;p&gt;Thank you, I&amp;#39;ll look into it. On a side note; How would you normally go from at &lt;code&gt;sd_ble_gatts_value_set(...)&lt;/code&gt; to a sd_ble_gatts_hvx(...), central side? I have tried:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Added a new notify_enable() function in the db discovery handle that finds the custom characteristic.&lt;/li&gt;
&lt;li&gt;In on_evt_hvx i have added a if statement that looks for the custom characteristic handle&lt;/li&gt;
&lt;li&gt;In client_handling_init() I add ble_db_discovery_evt_register() with the custom uuid and the custom handler&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Anything I have done wrong, or am missing?&lt;/p&gt;
&lt;p&gt;As mentioned in OP, the server seems to work fine when I test it with the master control app. The characteristic value is only updated when there is a change. And in the log i can see that the app gets the notifications.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink client GATTC event handler not working</title><link>https://devzone.nordicsemi.com/thread/39665?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2015 16:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de2ce70-4340-415a-9ea6-5cfd926a9f00</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;0x27 is &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; which is handled in &lt;code&gt;on_ble_evt(...)&lt;/code&gt;. I don&amp;#39;t understand what you have changed, because the multilink peripheral code uses &lt;code&gt;sd_ble_gatts_hvx(...)&lt;/code&gt; by default and not &lt;code&gt;sd_ble_gatts_value_set(...)&lt;/code&gt;, and the &lt;code&gt;client_handling_ble_evt_handler(...)&lt;/code&gt; you have is not the same as in the multilink central example. You have an &lt;code&gt;APP_ERROR_CHECK(...)&lt;/code&gt; on an uninitialized variable, which is not safe, but err_code is probably zero (NRF_SUCCESS). You need to pinpoint more exactly where the code fails. If you define DEBUG in the preprocessor symbols and set a breakpoint in &lt;code&gt;app_error_handler(...)&lt;/code&gt; you can go into debug and check where the error happened and which error code it is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multilink client GATTC event handler not working</title><link>https://devzone.nordicsemi.com/thread/39664?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2015 11:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1b124b-22f4-4f3b-982d-b9c511997156</guid><dc:creator>Christian E</dc:creator><description>&lt;p&gt;Using SDK 10 btw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>