<?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 read and write MAC device address?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112482/how-to-read-and-write-mac-device-address</link><description>Hello, 
 I use Nrf52833DK running nRF Connect SDK (NCS) 
 I want read and write BLE MAC device address no matter it&amp;#39;s the public one or static one. 
 Now i know bt_read_static_addr() can read static device address,but is there any API can make me change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jun 2024 11:31:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112482/how-to-read-and-write-mac-device-address" /><item><title>RE: How to read and write MAC device address?</title><link>https://devzone.nordicsemi.com/thread/490854?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 11:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d20ee9d-8a4d-4177-8dd1-b1587aab104a</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;To set the public address, you can use the&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92804/using-ficr-device-address-with-hci_uart-example-from-ncs-on-nrf52x?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt; &lt;em&gt;bt_ctlr_set_public_addr()&lt;/em&gt; function&lt;/a&gt;.&lt;br /&gt;&lt;span&gt;To set a new identity address, you can use the&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95723/ncs2-1-2-for-setting-public-mac-address?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;&lt;em&gt;&lt;code dir="ltr"&gt;bt_id_create()&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95723/ncs2-1-2-for-setting-public-mac-address?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending"&gt;&amp;nbsp;function&lt;/a&gt;.But&amp;nbsp;please note that this function only supports static random identity addresses.&lt;br /&gt;&lt;/span&gt;Hope this is what you are looking for.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>