<?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>Get data from Advertising packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34273/get-data-from-advertising-packet</link><description>Hello, I would like to get data from the advertising packet. I think that utilize this function is a good starting point : 
 
 Then ... For exemple, what do I need to do to log properly the datas on my terminal ? 
 Try to put the datas on a vector like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 May 2018 12:38:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34273/get-data-from-advertising-packet" /><item><title>RE: Get data from Advertising packet</title><link>https://devzone.nordicsemi.com/thread/131872?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 12:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f62ba3-101b-436e-968f-5d229501f6ff</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I would definitely recommend you to take a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24"&gt;UART example&lt;/a&gt; from the ble_peripheral folder of SDK 15. The nus_data_handler() function shows how the messages are received over BLE &amp;amp; transferred over to UART to your computer&amp;#39;s COM Port. See the nus_data_handler() function in main.c for how data received over BLE is handled. The on_write() function in ble_nus.c will pick up the BLE_GATTS_EVT_WRITE event from the softdevice &amp;amp; handle it by setting the event&amp;nbsp;BLE_NUS_EVT_RX_DATA &amp;amp; letting nus_data_handler() handle that event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>