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

changing the device name via nrf toolbox app

Hi ...

i want to change the device name dynamically, i read my questions related to it , still not working . Here , gap_param_init i have set the flag to change the device name , i am disconnecting , then stop advertise  , and again i am  starting  to advertise . this is my loop , if i started again to advertise i am getting the same device_name only ,please guide me

  • if my condition gets true  i am calling the set_devicename function .. what i want to include this code please guide me Hung bui

  • Please send the full code, do you have the call to setup adv data: sd_ble_gap_adv_set_configure() ? Please have a look at the message sequence chart here.

  • Have a look into it ,in this case i haven't done Re-initializing the advertising packets , please share me the sample so that i can modify

  • Please study the code. We can't help you if you don't know what the code is doing. 

    In your code the adv data is initialized in advertising_init().

    You can't call advertising_init() again but you can call ble_advertising_advdata_update() to update. 

    In addition, when you call any Softdevice API please check for the return code. 

1 2