<?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>The proper function to call to &amp;quot;pull&amp;quot; the received data from s120 softdevice stack?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11321/the-proper-function-to-call-to-pull-the-received-data-from-s120-softdevice-stack</link><description>I have been working on the multilink example lately (version: 8.0), I have identified the function to send data on the peripheral part, it is sd_ble_gatts_hvx(), but I&amp;#39;m having a real hard time locating the function to receive data from the s120 softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jan 2016 13:43:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11321/the-proper-function-to-call-to-pull-the-received-data-from-s120-softdevice-stack" /><item><title>RE: The proper function to call to "pull" the received data from s120 softdevice stack?</title><link>https://devzone.nordicsemi.com/thread/42583?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2016 13:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c85099-cf83-43e9-b2e0-6415652af8a3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think you should have a look at the BLE central tutorial, found &lt;a href="https://devzone.nordicsemi.com/tutorials/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Whenever the SoftDevice receives a notification, sent with sd_ble_gatts_hvx() from the server (here the peripheral), it will send a BLE_GATTC_EVT_HVX event to the application. With the event you will get a ble_gattc_evt_hvx_t struct, and in this you can find the data.&lt;/p&gt;
&lt;p&gt;In the ble_app_multilink_central example you can see that this is handled in client_handling_ble_evt_handler() in the BLE_GATTC_EVT_HVX case. This is turn calls on_evt_hvx() where the data is used to toggle the LEDs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>