Please refer Day009 Dynamic broadcaster code example from the link below.
Please cross check whether your application is following the same firmware flow and update us.
My code flow is almost the same but I have not made the device as broadcaster and also I'm not using low power mode. It's in profile mode and I want to change only the device name not other data. I am advertising only device name and no other parameters. Also it is in connectable undirected advertising.
It is taking the updated data but not properly. It advertises only half of the name. Do I need to update the BLE component?
Could you please modify line no: 95 of your main.c as below and see if this issue gets resolved?
"new_advData.advData[ADV_DATA_NAME_START_INDEX+j] = '\0';"
Thanks and Regards,
It worked after changing that line no. 95. There was my mistake. Thank you for solving it.