Hello. I have the need to get a device's unique address that remains stable across device firmware upgrades, etc.
Before SDKV12 I've been using sd_ble_gap_address_get().
In SDKV12 S132 this function has vanished. In poking around the SDK comoponent source code, I see the following in several places, such as the snipped below from ble_advdata.c.
I am still plodding through conversion to SDKV12 so I haven't yet tested it, but it looks as though the new _addr_get function is a direct replacement for the old. Is this correct, or are there some subtle semantic differences that we should be aware of?
Thanks.
// Get BLE address.
#if (NRF_SD_BLE_API_VERSION == 3)
err_code = sd_ble_gap_addr_get(&device_addr);
#else
err_code = sd_ble_gap_address_get(&device_addr);
#endif