cancel
Showing results for 
Search instead for 
Did you mean: 

Safely change advertisement data during active advertisement

DS.4
Senior II

HI

Would like to know if advertisement data can be safely changed , while advertising using :

 

ACI_GAP_UPDATE_ADV_DATA

 

Safely meaning , the data is changed as a bulk, and the current advertisement will not show 'half' of the old data and 'half' of the new data while switching.

 

or do I have to stop advertisement-> change  the ad type-> start again ?

 

Thanks!

1 REPLY 1
STTwo-32
ST Employee

Hello @DS.4 

Yes, it should be safely to change advertisement data during active advertisement. Since the BLE specification say:

" If advertising is currently enabled, the Controller shall use the new data in subsequent advertising events. If an advertising event is in progress when this command is issued, the Controller may use the old or new data for that event. If advertising is currently disabled, the data shall be kept by the Controller and used once advertising is enabled."

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.