How to update manufacture data while advertising?

Hi

I want to advertise the sensor data while extended advertising.

iam using the below function,but it failed to update.

bt_le_adv_update_data(ad, ARRAY_SIZE(ad), NULL, 0);
Related