<?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 BlueTooth ID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114624/set-bluetooth-id</link><description>This seems like it should be simple, but I cannot seem to set a custom static BlueTooth ID on an nRF52832 under PlatformIO / Zephyr - it just keeps generating a random ID. I am calling 
 
 bt_id_create, which is returning 0 (success).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Sep 2024 07:46:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114624/set-bluetooth-id" /><item><title>RE: Set BlueTooth ID</title><link>https://devzone.nordicsemi.com/thread/502699?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 07:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb0e63f-5a3c-4fc8-ac19-275e9f9b8c20</guid><dc:creator>Dane du Plooy</dc:creator><description>&lt;p&gt;This seems to be working fine under nRF SDK (i.e. not PlatformIO) passing NULL for the IRK. I&amp;#39;m just going to continue dev under nRF SDK, I&amp;#39;m not going to try figure out why it didn&amp;#39;t seem to work under PlatformIO (may have just been something silly I was doing, not sure).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        bt_addr_le_t bt_addr;

        bt_addr.a.val[0] = 0x26;
        bt_addr.a.val[1] = 0xF8;
        bt_addr.a.val[2] = 0x64;
        bt_addr.a.val[3] = 0xC4;
        bt_addr.a.val[4] = 0x6A;
        bt_addr.a.val[5] = 0xCB;
        bt_addr.type = BT_ADDR_LE_RANDOM;

        int err = bt_id_create(&amp;amp;bt_addr, NULL);
        
        int err = bt_enable(bt_ready);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set BlueTooth ID</title><link>https://devzone.nordicsemi.com/thread/502109?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 12:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4de883f-bce9-4041-8e4a-23eb97ac5bf0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any experience with platformIO, but you can check out this guide:&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-3/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-2-bluetooth-le-advertising/topic/blefund-lesson-2-exercise-3/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe check that the address you provide is valid first, ref:&lt;br /&gt;&lt;a href="https://github.com/NordicDeveloperAcademy/bt-fund/blob/main/lesson2/blefund_less2_exer3_solution/src/main.c#L61"&gt;https://github.com/NordicDeveloperAcademy/bt-fund/blob/main/lesson2/blefund_less2_exer3_solution/src/main.c#L61&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>