<?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>How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13490/how-to-correctly-receive-a-value-sent-by-notification-on-my-nrf51-dk</link><description>Hi all, i am experiencing a problem, that i exposed maybe not so clearly on other topics; i have a a smart beacon kit that is sending temperature values by notification (as done in the tutorial devzone.nordicsemi.com/.../ and it works, i see the values</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 May 2016 11:56:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13490/how-to-correctly-receive-a-value-sent-by-notification-on-my-nrf51-dk" /><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51507?ContentTypeID=1</link><pubDate>Wed, 04 May 2016 11:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9d02af-eb94-4e31-b3cd-ba2ab0d03653</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Sorry i have another question ^^&amp;#39; Please @Petter tell me if it&amp;#39;s necessary to open new posts or if here it&amp;#39;s ok! Now i am sure that i&amp;#39;m broadcasting the correct UUID because i made the two devices connect by finding the UUID of the beacon, on the DK; the problem is that even having the correct UUID, i can&amp;#39;t make the db discovery module to work correctly. I subscribed to the&lt;code&gt;ble_db_discovery_evt_register&lt;/code&gt; with the correct service UUID that i have on the beacon, but still checking with the printf in different part of the code, it doesn&amp;#39;t even enter in &lt;code&gt;db_disc_handler&lt;/code&gt;. I updated the zip file with the project currently working with the connection, can you please tell me where is the error? Thanks really again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51501?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 13:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d171a4db-6158-4c66-ba67-f2dd1e2a1220</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Yes that doubt is ok, if i have more problems i will open other dedicate questions :) Thanks mr Myhre!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51506?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 12:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:648972e6-cb3e-432e-a603-084a7c0c3716</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I guess you deleted your comment because you figured it out :) Could you accept my answer? If you have more questions feel free to post them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51505?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 08:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee6e713-ab8d-4751-94d9-266f738768ce</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;To be able to do a write to the CCCD you need to know its attribute handle. If you want to hack it, you can get the handle from Master Control Panel and hardcode it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51504?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 07:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1aab3b2-9dee-42cc-a18b-4c556fb1b26b</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Ok really thanks again; however i would like to try both the ways for a didactical matter, with or without the DB discovery module. If i wouldn&amp;#39;t use it, shall i simply trigger the &amp;quot;ble_nus_c_rx_notif_enable()&amp;quot; without any event sent from the discovery module? I mean, if i want to do a simpler way,in which if i connect to a device (maybe not by finding the UUID but the name of the device) i don&amp;#39;t want to check if there is the wanted service, just enable and receive the notification due only to the fact that they connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51503?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 07:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e28d958-761c-4435-986e-0462999bd158</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The Database Discovery module is something you can choose to use to discover your service, it is not mandatory to use it. If you are using the module, then I you should register, or else it doesn&amp;#39;t really make sense using it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51502?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 17:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f156d37-d1f5-4195-9a1e-fe56186196e6</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Nope, i will do it tomorrow when i can get to my desk; however it is compulsory to register/subscribe to a service to receive its notification, or i can skip it? This is just for my knowledge :) Nothing else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51500?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 14:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f234827-a9d5-413f-baa0-e50aae2d8a0a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you registered with ble_db_discovery_evt_register()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51499?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 13:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff18c7da-7c33-4704-8b4f-e6febed4bba2</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Fantastic! Just to be sure, in order to tell what service is to be found, always referring to ble_app_uart_c, is it enough to substitute into &lt;code&gt;ble_nus_c_on_db_disc_evt()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Check if the NUS was discovered.
    if (p_evt-&amp;gt;evt_type == BLE_DB_DISCOVERY_COMPLETE &amp;amp;&amp;amp;
        p_evt-&amp;gt;params.discovered_db.srv_uuid.uuid == BLE_UUID_NUS_SERVICE &amp;amp;&amp;amp; //substitute with BLE_UUID_OUR_SERVICE_UUID          
       p_evt-&amp;gt;params.discovered_db.srv_uuid.type == p_ble_nus_c-&amp;gt;uuid_type) //substitute with BLE_UUID_TYPE_VENDOR_BEGIN
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is this enough or i need some other modifications? ^^&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51498?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 12:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:227063be-aa02-40f7-ae95-a5f8279933fa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Np. Exactly :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51497?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 12:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beceaeb0-18d4-4d1a-8fca-4b3af998ebfa</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;First of all thanks really for your time. So if i am understanding correctly, i should modify the ble_app_uart_c on the DK to &lt;em&gt;tell it to discover my personal service&lt;/em&gt; on the beacon, which is NOT the nus service, but my custom one (formerly &amp;quot;our service&amp;quot; of the tutorial)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51496?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 12:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e620fdd-6f10-414c-bfe8-511838b38a56</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;There are several ways of doing this, but I will use ble_app_uart_c as a reference.&lt;/p&gt;
&lt;p&gt;As I mentioned above you need to discover your service, you can use the Database Discovery Module to this. See the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_ble_db_discovery.html?cp=4_0_0_3_1_2"&gt;SDK documentation&lt;/a&gt; and my answer &lt;a href="https://devzone.nordicsemi.com/question/13718/ble_db_discovery_max_srv-implications/?answer=17390#post-id-17390"&gt;here&lt;/a&gt; may also be helpful. ble_app_uart_c discovers the UART service, you need to discover your service. You can see that ble_db_discovery_evt_register() is called inside ble_nus_c_init().&lt;/p&gt;
&lt;p&gt;In on_ble_evt() you can see that when you get the BLE_GAP_EVT_CONNECTED event service discovery is started with ble_db_discovery_start(). When a service is discovered db_disc_handler() will be called, which calls ble_nus_c_on_db_disc_evt(). This checks if the correct service was discovered and stores the attribute handles of the characteristic values and the CCCD. It then sends the BLE_NUS_C_EVT_DISCOVERY_COMPLETE event to ble_nus_c_evt_handler() in main.c. This event triggers ble_nus_c_rx_notif_enable() which writes 0x0001 to the CCCD of the characteristic that shall send notifications. Before the CCCD is set to 0x0001 the peripheral will not be able to send notifications.&lt;/p&gt;
&lt;p&gt;If you get a notification from the peripheral you will get the BLE_GATTC_EVT_HVX event, in this you can find your data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51494?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d66a461-a733-4de1-93b1-941d30ccb8fd</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Ok thanks, i uploaded the zip:&lt;/p&gt;
&lt;p&gt;For the central project (ble_app_uart_c), which is loaded on the DK, i used SDK 11 with softdevice s130
For the peripheral project (ble_app_beacon), which is loaded on the smart beacon kit (rev 1.0), i used SDK 7.1 (the latest compatible) with softdevice s110.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51491?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bdb2989-3e56-4e18-97f7-c2f9012aaa2f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please do not copy paste your complete code. If you want us to test your application, zip both your peripheral and central project and let us know what SoftDevice version and SDK version you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51490?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff024d42-7a2f-4ed3-af09-8e07e8ca4c60</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Sorry probably i can&amp;#39;t explain well what i have done until now. As i said in the post, i have already used those example you are suggesting (ble app uart central in particular), i will load the full code that i used on the DK (as said, it&amp;#39;s pretty much the app uart central, on the beacon i have the service of the tutorial that sends temperature data)  in the post so you can watch what i implemented.&lt;/p&gt;
&lt;p&gt;@Jorge, yes indeed, i have a similar code but not specifically for HRS since i don&amp;#39;t use it, i just tried to adapt the procedure for my own service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51489?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a307b066-01f6-4e53-82ef-fc317fa561ef</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;If you are using the ble_app_hrs_c example there is this part:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Heart Rate Collector Handler.
 */
static void hrs_c_evt_handler(ble_hrs_c_t * p_hrs_c, ble_hrs_c_evt_t * p_hrs_c_evt)
{
    uint32_t err_code;

    switch (p_hrs_c_evt-&amp;gt;evt_type)
    {
        case BLE_HRS_C_EVT_DISCOVERY_COMPLETE:

            // Heart rate service discovered. Enable notification of Heart Rate Measurement.
            err_code = ble_hrs_c_hrm_notif_enable(p_hrs_c);
            APP_ERROR_CHECK(err_code);

            APPL_LOG_DEBUG(&amp;quot;Heart rate service discovered \r\n&amp;quot;);
            break;

        case BLE_HRS_C_EVT_HRM_NOTIFICATION:
        {
            APPL_LOG_DEBUG(&amp;quot;[APPL]: HR Measurement received %d \r\n&amp;quot;, p_hrs_c_evt-&amp;gt;params.hrm.hr_value);

            APPL_LOG(&amp;quot;Heart Rate = %d\r\n&amp;quot;, p_hrs_c_evt-&amp;gt;params.hrm.hr_value);
            break;
        }

        default:
            break;
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;this enables the notification and receives the data is on &lt;code&gt;p_hrs_c_evt-&amp;gt;params.hrm.hr_value&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;this example is from SDK11.
To be sure you are accessing all the steps you waant you can put some printf&amp;#39;s on your code to see if it goes where you want!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51488?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 08:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca429305-b16b-47cf-8946-a5e153fa64aa</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I suspect you think this is much less complex than it is. It is not one line of code you can put in to get this to work. You need to do service discovery, you need to enable notifications on the peripheral by writing to the CCCD of the characteristic. That is why I recommended you to have a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/21/"&gt;BLE central tutorial&lt;/a&gt;. I would also recommend you to start of with a peripheral and central example that actually works, play with them, and modify them to learn how thing works. For example ble_app_uart and ble_app_uart_c. Or ble_app_hrs and ble_app_hrs_c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51495?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 07:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3941a8e1-b3ce-41ce-9cb1-7320ed85bd74</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;Guys i think that you are not reading the main post. I got them connecting as i clearly stated (discovery on the DK and all the stuff), and this is confirmed by the setting of a LED, the notification are also enabled but i don&amp;#39;t receive anything, this is the problem. I am just asking at level of code, what i should write to enable the receiving of the value on the DK to see if i did all correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51493?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 07:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d912c0-10b8-446c-bce5-1a64a0d28ad2</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;On the DK you need to Discover the device, connect to it, allow it to send notifications and then you should receive the data from the beacon. If you can connect, I  don&amp;#39;t understand what could be the problem for not getting the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51492?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 07:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c72b536-0456-422e-8a5f-b7ef8147ff8e</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;So can you please indicate me the correct way, maybe with an example of instruction? By the way, this is what another member said me to do in another topic, it&amp;#39;s not an idea of mine, and that assignation is taken from another example (heart rate service).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51487?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 21:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad0d856-af58-4dcf-8b22-b8c56edf49ab</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;I am not sure what you are trying to achieve, but what struck me is you are assigning an address to data instead of dereferencing so I am not sure what you were hoping for at that point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51486?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 15:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40569644-e5dd-4fe6-b2ef-db8a8ca05e8c</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;As i said, the question is, on the receiving device (that is the DK in my case..) how should i get the values notified by the beacon? Because if i use the MCP on the phone, i just connect the two devices and the values are pushed in, is it the same here? i should only get the two devices connecting? And if not,what instruction should i add? I am asking this just because the DK doesn&amp;#39;t receive any value by notification, it doesn&amp;#39;t even receive the &amp;quot;BLE_GATTC_EVT_HVX&amp;quot; event that i should get every time i receive a value from notification :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51485?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 15:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34f76993-8202-4184-84a1-6ad4b6f4fe23</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;But what are you getting there then? what is your real question?&lt;/p&gt;
&lt;p&gt;When you edit your questions or comments try to press the box &amp;quot;minor&amp;quot; edit, if not the other persons receive a lot of messages ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51484?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 15:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40e2968b-2703-4891-a526-6d6e1a75aeed</guid><dc:creator>Revo</dc:creator><description>&lt;p&gt;The tutorial says that you can put the data &lt;em&gt;to be sent&lt;/em&gt; there where you are saying (in the code loaded on the beacon is there), but on the other side (on the DK) the received data should be in the field that i posted! Also in the heart rate example the received data is stored in:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;data = &amp;amp;p_ble_evt-&amp;gt;evt.gattc_evt.params.hvx.data[0];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;that is what i wrote in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to correctly receive a value sent by notification, on my nRF51 DK</title><link>https://devzone.nordicsemi.com/thread/51483?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 13:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b8ef55-d2c2-421f-abfc-965ebf2d74c3</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;From what I understood from the tutorial I think the data is on&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_ble_evt-&amp;gt;evt.gattc_evt.hvx_params.p_data;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;you then can print it via NUS to your a terminal on your pc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>