<?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>Set Public MAC address in the Beacon sample !!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94281/set-public-mac-address-in-the-beacon-sample</link><description>Hi , I am unable to set a public mac address in my beacon sample in nrf connect 2.1.1 on nrf 528833. 
 I am using the solution in 
 
 Case ID: 290639</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Nov 2022 04:17:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94281/set-public-mac-address-in-the-beacon-sample" /><item><title>RE: Set Public MAC address in the Beacon sample !!</title><link>https://devzone.nordicsemi.com/thread/398228?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 04:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693b6642-535e-4c03-9654-3a5f4f1da11a</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi , yes I figured it out ,&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;using this it worked .&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set Public MAC address in the Beacon sample !!</title><link>https://devzone.nordicsemi.com/thread/397887?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 13:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa0d196-121f-4620-8193-ec02d15727d9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you calling &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/controller.html#c.bt_ctlr_set_public_addr"&gt;bt_ctlr_set_public_addr&lt;/a&gt;() before bt_enable()? I just tried this with the Beacon sample here, and it worked fine:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	uint8_t addr[] = {0xAA, 0xAA, 0xAA, 0xAA,0xAA, 0xAA};

	bt_ctlr_set_public_addr(addr);

    /* Initialize the Bluetooth Subsystem */
	err = bt_enable(bt_ready);
	if (err) {
		printk(&amp;quot;Bluetooth init failed (err %d)\n&amp;quot;, err);
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>