Hi
I succeeded in changing the channel mask in the advertize_init function, but I could not change it in the middle of the function.
For example, I want to change the channel mask when a flag is raised, but I get an error.
Do I need to stop the advertisement, change the mask value and restart it?
If so, is there a way to stop the advertisement?
I have tried using sd_ble_gap_adv_stop(m_adv_handle) here, but although the build passes, it stops with an error when this function is actually executed.