Changing advertising parameters on the fly

Hi

I have two "states" of advertising, I want to switch between. One where it often advertises and one where the advertising interval is pretty long to save some energy. Just FYI, I am using the nRF Connect SDK.

At the moment, I create a second advertising set with different bt_le_adv_param parameters via bt_le_ext_adv_create. For this to work, I need to set CONFIG_BT_EXT_ADV_MAX_ADV_SET to 2. Otherwise, I get a ENOMEM error when creating the second set. Is there a way to remove or overwrite the first set to save some memory?

Or is there a completely different way to change the advertising paramters on the fly?

Thanks for the help!

Parents Reply Children
No Data
Related