<?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>Reading MAC address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35117/reading-mac-address</link><description>Hello 
 
 I just have some small queries. 
 Let&amp;#39;s say that I am scanning continuously for advertisement packets. I think the MAC address of the devices sending these packets are part of the packet payload (though I am not sure! Please clear that out)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 20:13:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35117/reading-mac-address" /><item><title>RE: Reading MAC address</title><link>https://devzone.nordicsemi.com/thread/135012?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 20:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d931b6d5-2511-4da5-af32-48986ee811cb</guid><dc:creator>Atul Bansal</dc:creator><description>&lt;p&gt;Thank You!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading MAC address</title><link>https://devzone.nordicsemi.com/thread/134841?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 07:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4efddfe3-d360-4e5d-a5b9-2dcc4a8258bd</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The address of the advertiser is sent along with the advertising packet. During scan you will get &lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt; events, where you get the address of the peer in the &lt;code&gt;peer_addr&lt;/code&gt; field of the &lt;code&gt;ble_gap_adv_report_type_t&lt;/code&gt; in the ble event. (In the BLE event handler it would usually be &lt;code&gt;p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr&lt;/code&gt;.) See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gabbd87dea8f218d2a7e12c40cfbc6a7d2"&gt;sd_ble_gap_scan_start()&lt;/a&gt; and the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fstructble__gap__evt__adv__report__t.html"&gt;ble_gap_evt_adv_report_t Struct Reference&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Yes, &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga0d859904dea45d4f0f4d5a95d9d65e78"&gt;sd_ble_gap_addr_get()&lt;/a&gt; returns the identity address of the device running the code.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>