This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to set static nRF52 MAC address in using nRF Connect SDK?

Hi,

could you please advise us on how to set a static MAC address for the nRF52 series? We haven't been able to find it in the documentation. And it seems that default is that it changes randomly after each startup. 

Thanks,

Lukas

Parents Reply
  • Well, we have been able to get it working by commenting out some code in Zephyr. However, as you might feel this is not the best way.

    Have you tried to just create a const bt_addr_le_t address and pass that to bt_set_id_addr() before calling bt_enable()?

    This is related to our previous question. Seems like it should work this way. But do we really need to create our own address? Wouldn't it make sense to use and store the generated one? Should be more robust.

Children
Related