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

sd_ble_gap_address_set works for normal mode only?

Hi,

I have learned that you can change the MAC address on a device by using sd_ble_gap_address_set. However, when I press the sw2 button on the beacon (running a modified version of the ble_app_beacon app), the beacon switches back to its original MAC address. I don't understand why this is happening. How can I set the MAC address so that it will stay the same for both normal and config modes?

Thanks!

Parents
  • sd_ble_gap_address_set returns with 0, which is the value of NRF_SUCCESS so I think this is fine. I believe it has something to do with beacon getting reset after a disconnect, but I'm not sure (Even before disconnect, the address doesnt change, but I thought that could be because mac address doesnt change while connected to a BLE device).

Reply
  • sd_ble_gap_address_set returns with 0, which is the value of NRF_SUCCESS so I think this is fine. I believe it has something to do with beacon getting reset after a disconnect, but I'm not sure (Even before disconnect, the address doesnt change, but I thought that could be because mac address doesnt change while connected to a BLE device).

Children
No Data
Related