<?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 connected device mac address ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16900/how-to-get-connected-device-mac-address</link><description>Hello I try to get the mac address of connected device 
 /**@brief Function for the application&amp;#39;s SoftDevice event handler.
 *
 * @param[in] p_ble_evt SoftDevice event.
 */
static void on_ble_evt(ble_evt_t * p_ble_evt)
{
 uint32_t err_code;
	</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Mar 2019 05:42:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16900/how-to-get-connected-device-mac-address" /><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/179105?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 05:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18fcf8b7-720f-4a3e-b6cc-66215c875655</guid><dc:creator>Devanshi1510</dc:creator><description>&lt;p&gt;hey I tried your code snippet am getting error while executing mrprintf function : So ,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;I get this error and when I try to define UART with 48 bits it gives 2nd and 3rd error.&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; &amp;#39;UART&amp;#39; undeclared (first use in this function)&lt;/p&gt;
&lt;p&gt;2.Output/ble_app_uart_pca10056_s140 Release/Obj/main.o: In function `ble_evt_handler&amp;#39;:&lt;/p&gt;
&lt;p&gt;3. undefined reference to `mprintf&amp;#39;&lt;/p&gt;
&lt;p&gt;i am quite new to this, so any guidance would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64733?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 14:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb07b26-dbc5-4162-8e5e-491dab614396</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If I answered your questions, please accept my answer by clicking the check mark next to it. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64734?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 20:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd837f5-64a1-490e-ad40-24efa38583f2</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;I found this information:&lt;/p&gt;
&lt;p&gt;There are 4 types of addresses defined for BLE:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Public IEEE Format&lt;/strong&gt;– Manufacturer specific IEEE Bluetooth address and company identifiers can be purchased through the IEEE Registration Authority.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Random Static&lt;/strong&gt;– Burned into radio silicon upon shipment or can be randomly generated to a new value at each power cycle.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Random Private Resolvable&lt;/strong&gt;– Used in bonded devices and requires the Identity Resolving Key (IRK) be shared during Phase 3 of the pairing procedure. This changes periodically based on a timer or other method. This is the default use case for iOS devices and for Android devices with Lollipop or newer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Random Private Non-Resolvable&lt;/strong&gt;– Shared between bonded devices for use during reconnection. This changes with each connection.&lt;/p&gt;
&lt;p&gt;See also &lt;a href="https://devzone.nordicsemi.com/question/6496/gap-address-types/"&gt;GAP Address types [closed]&lt;/a&gt;
and &lt;a href="https://devzone.nordicsemi.com/question/43670/how-to-distinguish-between-random-and-public-gap-addresses/"&gt;How to distinguish between random and public GAP addresses?&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64732?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 20:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db9216b8-bc30-4581-88e7-62671c3cdc18</guid><dc:creator>manymany</dc:creator><description>&lt;p&gt;Hi Petter, Thanks for your answer. Do you have a link to a simple documentation about this concept. (The link in your answer don&amp;#39;t work).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64731?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 09:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5217bb2-97e9-45f4-8dca-effc1108c401</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;As Alex mentioned 0x02 means that the peer is using the private resolvable address type, this address is not static it will change. More information &lt;a href="https://devzone.nordicsemi.com/question/6496/gap-address-types/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Edit: Fixed link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64730?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 08:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:171e791d-9c84-4aa0-b36f-2c8480550cf8</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;What is addr_type? if it is Private Resolvable address 0x02 then your device was bonded and address can be resolved using IRK (but I don&amp;#39;t know how :) )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get connected device mac address ?</title><link>https://devzone.nordicsemi.com/thread/64729?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 07:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a5c0d7-a7bf-4bdd-8fb0-2eb2fe2c0df2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What value do you get?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>