Hi there,
I am trying to implement some power saving features of my device, and am having trouble with stopping advertising in SDK v3.1.0
I would like to advertise for 1 minute, and then stop. A button press would resume advertising with the same timeout. I do not need the device to advertise 24/7
It looks like setting BT_LE_AD_LIMITED for bt_data inside bt_le_adv_start , and setting CONFIG_BT_LIM_ADV_TIMEOUT=60 allows me to implement the timeout feature. However, in SDK v3.1.0, advertising immediately restarts after stopping. It seems that there used to be an option inside BT_LE_ADV_PARAM to set advertising to one time. The alternative BT_LE_ADV_OPT_CONN does not seem to do this by default and I cannot find any instructions on how to implement this.

Is anyone able to tell me how I can implement this feature?
Thank you very much