Good morning,
In my application (SDK v 2.8.0) I would like to disable/enable runtime the advertising for the mesh provisioning. The inizialization of the mesh stack works well and I am able to correctly provision/unprovision the device and exchange mesh properties, but I would also like an unprovisioned device to be scannable in order to be provisioned only under specific logic conditions.
In order to do that, I first tried with bt_mesh_prov_enable and bt_mesh_prov_disable functions (that, according to my understanding, do not enable/disable only the advertising but the whole mesh system) but, although the enabling is fine and makes the device appear for provisioning only when I call it, I find that disabling the mesh after an enabling causes an assert.
Then I tried with the functions bt_le_adv_start/stop and bt_le_ext_adv_start/stop, which, at least by the name, look like the right ones for what I need. However neither of these seem to have any effect: when the mesh advertising is enabled (and the device is available for provisioning on nRF Mesh) and I call a bt_le_(ext)_adv_stop the device is still visible and ready for provisioning.
What am I doing wrong?
Thank you.
Kind regards,
Stefano