I need to make a reset of mesh device with clearing its configuration.
For this I tried to use model_config_file_clear() or mesh_stack_config_clear() functions.
However I get an assert error by calling any of these functions. Please see screenshots below.
I tried to add delay loop after calling one of these functions and before the reset of the device. Also tried to call stop_proxy().
Clearing model function fails all the time, clearing stack config fails half of the times. Functions are called from main loop.
Also I am not sure which one is the right function to use.
Call stack (similar to both functions):
Failed Assert: