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
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 ?
HI,you can refer to this example (https://github.com/jimmywong2003/nrf5-modify-device-parameter-through-host).
it is very similar to the thingy52.
How to update the advertising set with new advertising data to use the new name ?
Best Regards ,
pspavi 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.