I need to be able to change the device name the SoftDevice uses AFTER the soft device is up and running. To change the device name, To do this I use
errorCode = sd_ble_gap_device_name_set(&sec_mode, deviceName,
strlen(deviceName));
which also returns with no errors.
The problem is, the SoftDevice does not switch to the new device name the next time advertising is started. But the SoftDevice does seem to be locking the new name into its own flash because if I do a complete pull-the-power cold-start then the SoftStack will start advertising using the new device name.
Can anybody tell me how to get the SoftDevice to start using the new device name as soon as I change it?
On small point, the name doesn't get changed while the device is SoftDevice is advertising, only when its connected.
Thanks,
Ed H.