I set CONFIG_BT_DEVICE_NAME_DYNAMIC=y in prj.conf, and then called it after the system started.
bt_le_adv_stop(); bt_set_name(name); bt_le_adv_update_data(ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd)); bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd,ARRAY_SIZE(sd));
These functions modify the Bluetooth name, but the new Bluetooth name has not taken effect.