<?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>S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4811/s120-s130-scan-getting-client-device-friendly-name</link><description>Hi all, 
 I am using S130 in scanning mode and I would like to list the devices that are currently advertising by their friendly name. I have access to p_ble_evt via BLE_GAP_EVT_ADV_REPORT but I&amp;#39;m stuck trying to find out which field in the nested structure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 12:06:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4811/s120-s130-scan-getting-client-device-friendly-name" /><item><title>RE: S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/thread/17027?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 12:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05bbbc4e-7db3-4b7c-b6ac-a439672e11d6</guid><dc:creator>KevinLiao</dc:creator><description>&lt;p&gt;Yes. I used the adv_report_parse() function, and get the device name. It&amp;#39;s works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/thread/17026?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2015 20:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b2c0d0-9be4-4346-be24-b297c38d3d23</guid><dc:creator>Florin</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty sure the BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME doesn&amp;#39;t get broadcasted. What&amp;#39;s interesting is that the BLE device scanner apps do display the friendly name.
I&amp;#39;ll try, with ble_app_hrs, thanks for the advice.
florin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/thread/17025?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2015 16:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05afd364-7a59-4543-a95c-4387b6a58a95</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you sure you have a name? I have just tested this with ble_app_hrs and ble_app_hrs_c and it seems to be working fine with BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME. Could you test with those examples first? Please see the ​&lt;a href="https://www.bluetooth.org/en-us/specification/adopted-specifications"&gt;&lt;strong&gt;Core Specification Supplement (CSS) v5&lt;/strong&gt;&lt;/a&gt;  for information on the format of advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/thread/17024?ContentTypeID=1</link><pubDate>Sat, 10 Jan 2015 07:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c416ca93-c9da-4d68-8a8c-719970c18996</guid><dc:creator>Florin</dc:creator><description>&lt;p&gt;Hi Petter, sorry for the late response. The scan doesn&amp;#39;t receive any of the definitions you&amp;#39;ve listed. I&amp;#39;m getting the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_GAP_AD_TYPE_APPEARANCE
BLE_GAP_AD_TYPE_FLAGS
BLE_GAP_AD_TYPE_TX_POWER_LEVEL
BLE_GAP_AD_TYPE_128BIT_SERVICE_UUID_COMPLETE (I&amp;#39;m broadcasting a 128bit uuid)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I have access to the ble_evt_t data structure and I think the friendly name is buried there somewhere. The struct is quite nested and gdb freezes in its attempt to list it.
I can give you more details if needed.&lt;/p&gt;
&lt;p&gt;florin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120/S130 scan, getting client device friendly name</title><link>https://devzone.nordicsemi.com/thread/17023?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2014 12:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89450bf2-2764-460d-8ed1-e196f6ece205</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you tried the adv_report_parse() function found in the ble_app_hrs_c S120 example in SDK 7.1.0?&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tested it myself, but hopefully you can use it with the appropriate &lt;code&gt;BLE_GAP_AD_TYPE_DEFINITIONS&lt;/code&gt;, for example &lt;code&gt;BLE_GAP_AD_TYPE_SHORT_LOCAL_NAME&lt;/code&gt; or &lt;code&gt;BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Please add a comment if you get into trouble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>