<?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>NRF9160 DK sending &amp;quot;MAC address&amp;quot; while advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92826/nrf9160-dk-sending-mac-address-while-advertising</link><description>Hii 
 I have a problem pass the address while advertising 
 I should pass the adress using 9160_dk 
 However, in main.c there is this line: 
 
 #define DEVICE_NAME &amp;quot;Nordic_UART&amp;quot; /* 
 but i should pass mac address like 
 #define DEVICE_NAME NRF_FICR-&amp;gt;DEVICEADDR1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Oct 2022 06:59:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92826/nrf9160-dk-sending-mac-address-while-advertising" /><item><title>RE: NRF9160 DK sending "MAC address" while advertising</title><link>https://devzone.nordicsemi.com/thread/390899?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2022 06:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1745b033-b1bc-43be-a39f-3e50c8830134</guid><dc:creator>abhay_kr</dc:creator><description>&lt;p&gt;Hii nordiac Engineer this will solved&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62190/setting-bluetooth-device-name-in-zephyr/339183"&gt;Setting Bluetooth Device Name in Zephyr - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I set the bt_set_name&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK sending "MAC address" while advertising</title><link>https://devzone.nordicsemi.com/thread/390628?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 11:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4f3a20-dae0-4caf-8186-3d6c7f9fc431</guid><dc:creator>abhay_kr</dc:creator><description>&lt;p&gt;Thanks for reply&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I will check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK sending "MAC address" while advertising</title><link>https://devzone.nordicsemi.com/thread/390616?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 11:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:462ae839-3e74-469f-89fe-d0a01cf911e8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;May I ask why you want to send the Bluetooth address as the device name (The address is part of the advertising packet header after all)?&lt;/p&gt;
&lt;p&gt;That aside, you cannot do this statically in the configuration (&lt;code&gt;CONFIG_BT_DEVICE_NAME&lt;/code&gt; sets the device name build time), as you need to read it runtime. What you could do is to read using&amp;nbsp;&lt;code&gt;bt_id_get()&lt;/code&gt;, and use it to set the device name as explained in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62190/setting-bluetooth-device-name-in-zephyr/339183"&gt;this post&lt;/a&gt;,&amp;nbsp;using &lt;code&gt;bt_set_name()&lt;/code&gt;. Note that you must add&amp;nbsp;&lt;code&gt;CONFIG_BT_DEVICE_NAME_DYNAMIC=y&lt;/code&gt; to your prj.conf in order to do this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>