<?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>UART Advertising Data - NRF51822 - s120</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3170/uart-advertising-data---nrf51822---s120</link><description>I am currently using s120 to create a central device to scan for my peripherals. In addition I am trying to parse the Advertising Report data and send it via UART. 
 p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.data 
 However, the result currently looks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Aug 2014 08:26:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3170/uart-advertising-data---nrf51822---s120" /><item><title>RE: UART Advertising Data - NRF51822 - s120</title><link>https://devzone.nordicsemi.com/thread/11683?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2014 08:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc9d03c9-6de2-4ba1-b69b-69f333c096d0</guid><dc:creator>Deimantas</dc:creator><description>&lt;p&gt;0B 09 4E 6F 72 64 69 63 5F 48 52 4D 03 19 41 03 02 01 06 07 03 0D 18 0F 18 0A 18
First byte is advertise/scan response data field length and second is it type.
Types can be found here &lt;a href="https://www.bluetooth.org/Technical/AssignedNumbers/generic_access_profile.htm"&gt;www.bluetooth.org/.../generic_access_profile.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For example:
0B 09 4E 6F 72 64 69 63 5F 48 52 4D
0B - data type length is 11 bytes (-1);
09 - type, Complete Local Name;
next 10 bytes are my local name: Nordic_HRM&lt;/p&gt;
&lt;p&gt;You can use adv_report_parse function, just use different type, e.g. 0x01 - is flags.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>