hi ... i want to change the device name by using our customized nrf toolbox , user will entry the name of device , so that particular name should with the previous name (nRF5X) ..How to do that ?
i tried by copying the received data to device name (strcpy (device_name , user_name) , the name is not changing . i have seen multiple threads, none of them work out
HI,you can refer to this example (https://github.com/jimmywong2003/nrf5-modify-device-parameter-through-host).
it is very similar to the thingy52.
Hi,you need to disconnect the ble link and stop the advertising first if you need to change the device name.
Please run the code on my example to see how it works.
static void gap_params_init(bool load_setting…
1)You need to disconnect the link 2) set the device name for activation 3) reconnect to the host againin my example, I store on the flash. After power up, I will configure the device name.
To update the device name via BLE you need to do the following:
Note that the phones cache the advertising name, so you will not necessarily see the new name on an existing phone unless you delete the bond, toggle Bluetooth off and on, and pair again (or similar).
I want to change the device name via ble app , i will enter my device name in ble app that data should replace the previous device name .
how do this ?
How to update the advertising set with new advertising data to use the new name ?
Best Regards ,
ps_anu said:How to update the advertising set with new advertising data to use the new name ?
You initialize the advertising set in the same way as you did originally. Essentially you do the exact same thing as before you called sd_ble_gap_device_name_set() with the new name. You can refer to the example Jimmy posted, or for instance this post.