Dear Team,
Can we change MAC address of nRF 5340 pdk/dk development board or it is fixed?
Dear Team,
Can we change MAC address of nRF 5340 pdk/dk development board or it is fixed?
Hi,
You can set the BT address using bt_id_create()
. For instance, like this to set the address to DE:AD:BE:EF:BA:11:
int err; bt_addr_le_t addr; err = bt_addr_le_from_str("DE:AD:BE:EF:BA:11", "random", &addr); if (err) { printk("Invalid BT address (err %d)\n", err); } err = bt_id_create(&addr, NULL); if (err < 0) { printk("Creating new ID failed (err %d)\n", err); }
Note that this must be done before enabling bluetooth.
Thanks,
BUT it is not working, i am using "C:\User\ncs\v1.4.2\nrf\samples\bluetooth\peripheral_uart\src" code to advertise MAC address.
Thanks,
BUT it is not working, i am using "C:\User\ncs\v1.4.2\nrf\samples\bluetooth\peripheral_uart\src" code to advertise MAC address.
Thanks it worked hust i forgot to put before BT enable