I'm using the nRF52840 with NCS SDK 2.0.2 and need to be able to change the BLE advertisement name of the peripheral device dynamically.
I have this working when using "normal" BLE strength. This is accomplished by calling "bt_le_adv_update_data()", but also needs a change in the file adv.c (Commenting out lines 847-849). See Case #272157
After getting "normal" BLE working, I am attempting to use "PHY ENCODED" to extend the BLE range using the example in NCS SDK 2.0.2 (See Case #294814).
I can get the initial device name to advertise using PHY ENCODED, but haven't figured out how to change the name dynamically. I tried using "bt_le_adv_upate_data()" but this doesn't work.
I also tried calling bt_le_ext_adv_set_data() again (with the updated data), but the initial device name continues to be advertised.
What is the sequence needed to dynamically change the advertised name when using PHY ENCODED? (Why is it different from "normal" BLE)?
Thanks!