Skip to main content
DS.4
Senior
October 6, 2024
Solved

Safely change advertisement data during active advertisement

  • October 6, 2024
  • 1 reply
  • 636 views

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!

Best answer by STTwo-32

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

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
October 7, 2024

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