<?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 decode advertising data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17160/how-to-decode-advertising-data</link><description>I used nRF5_SDK_12.1.0_0d23e2a, SoftDevice 8_9_0。
The peripheral device name is &amp;quot;Nordic&amp;quot; 
 After central scan, i want to get the device name &amp;quot;Nordic&amp;quot;，i used the following code to decode: 
 adv_data.p_data = (uint8_t *)p_gap_evt-&amp;gt;params.adv_report.data;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2016 09:46:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17160/how-to-decode-advertising-data" /><item><title>RE: How to decode advertising data?</title><link>https://devzone.nordicsemi.com/thread/65920?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e396986-5412-41ec-ae3d-f99d047d10df</guid><dc:creator>mento</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to decode advertising data?</title><link>https://devzone.nordicsemi.com/thread/65919?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 09:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba18f3aa-64b5-4183-9b6a-6edd7bc25d1e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should use the parameters &lt;code&gt;BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME&lt;/code&gt; and &lt;code&gt;BLE_GAP_AD_TYPE_SHORT_LOCAL_NAME&lt;/code&gt; in the &lt;code&gt;adv_report_parse()&lt;/code&gt; functions to search for names.&lt;/p&gt;
&lt;p&gt;Check out the function &lt;code&gt;on_adv_report()&lt;/code&gt; in main.c file of &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_multilink.html?cp=4_0_0_4_2_0_1"&gt;BLE Multi-link Central Example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>