<?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 Central how to access the data received from HVX</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6977/multilink-central-how-to-access-the-data-received-from-hvx</link><description>I can&amp;#39;t find anything related to this in the docs :( 
 In the client_handling.c is a function static void on_evt_hvx(ble_evt_t * p_ble_evt, client_t * p_client, uint32_t index) . That looks promising. Also there is p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 09 May 2015 17:41:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6977/multilink-central-how-to-access-the-data-received-from-hvx" /><item><title>RE: Multilink Central how to access the data received from HVX</title><link>https://devzone.nordicsemi.com/thread/24601?ContentTypeID=1</link><pubDate>Sat, 09 May 2015 17:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2308616-d822-4e49-aa91-757b30a0ae5a</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Ok. This will do quite fine for the start:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t test[7] = {0};
static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
	for (int i=0; i&amp;lt;7; i++) {
		test[i] = p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[i]; }
		printf(&amp;quot;%X %X %X %X %X %X %X\n&amp;quot;,test[0],test[1],test[2],test[3],test[4],test[5],test[6]);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now I just have to add a way to distinguish the different sender and to only print this when I really receive a notification (on startup it outputs lot lines of garbage..)
-&amp;gt;
add&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	   switch (p_ble_evt-&amp;gt;header.evt_id)
{
		case BLE_GATTC_EVT_HVX:
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;seems to do the trick.&lt;/p&gt;
&lt;p&gt;Now I only need to find a way to distinguish between the different sender... not only by a random index when they got paired or whatever is used in the example.. Well maybe I will just stick to the workaround. 1 byte more with each notification every 4seconds shouldn&amp;#39;t consume that much current..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>