<?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 get mac address of nearby ble devices?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23135/how-to-get-mac-address-of-nearby-ble-devices</link><description>Hello, 
 I am using pca10028 and sdk 12.2. I want to scan the nearby ble devices and want to display the mac address using uart. So which code should I refer or which thread should I follow to do this? 
 Thanks,
Shailav</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 07:08:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23135/how-to-get-mac-address-of-nearby-ble-devices" /><item><title>RE: How to get mac address of nearby ble devices?</title><link>https://devzone.nordicsemi.com/thread/90993?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 07:08:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959d16ad-21bb-4249-9e00-ac88ce724f5f</guid><dc:creator>Ram Wankhede</dc:creator><description>&lt;p&gt;Using UART It might not be possible I already tried with UART, it is slow with the scanning process.&lt;/p&gt;
&lt;p&gt;If you want to display information you can use Segger RTT client in your code.
from    [     BLE_GAP_EVT_ADV_REPORT in on_ble_evt         ]        you can get the information you want.&lt;/p&gt;
&lt;p&gt;Here, u will get the MAC address of the advertiser,&lt;/p&gt;
&lt;p&gt;p_gap_evt-&amp;gt;params.adv_report.peer_addr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>