Changing adv_params.channel_mask while adv is ongoing

Hi!


With SDK15, I figured that is possible to change the advertisement content on the fly by overwriting the content of `adv_data.adv_data.p_data` and updating `adv_data.adv_data.len` accordingly. But, if I instead change `m_advertising.adv_params.channel_mask` that does not seem to be doing anything. Static initialization of that field works flawlessly.

Calling `sd_ble_gap_adv_set_configure()` after changing `adv_params` seems to return various errors.. I tried calling it with `p_adv_data == NULL` and `adv_data` to no avail.

Does anyone have an example of how to change advertising channel on the fly?

Related