I have realised the provisioner example code from nrf Mesh SDK. There I found the following set of code to be executed when i pressed button 4.
if (mesh_stack_is_device_provisioned())
{
/* Clear all the states to reset the node. */
provisioner_invalidate();
mesh_stack_config_clear();
}
node_reset();
Hence, after execution of these command lines, device is appeared to be reset.
But when I am trying to call the same functions where i need in my application code, I am getting errors related to state assertion.
Noted: Errors are due to following code:
if (mesh_stack_is_device_provisioned())
{
/* Clear all the states to reset the node. */
provisioner_invalidate();
mesh_stack_config_clear();
}