This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mesh 2.2.0, clear stack config data

Hi Nordic:

I migrate my application from mesh-2.1.1+sdk15.0.0 to mesh2.2.0+ sdk15.0.0, but there is an issue when calling mesh_stack_config_clear()

Following are my steps:

1. Downloading proxy_client example with following adding code in button_event_handler(), also, include "nrf_delay.h", to a device.

proxy_disable();
mesh_stack_config_clear(); 
nrf_delay_ms(500);
node_reset();

2. Using IOS nrfMesh to provision this device, after provsioning, click device's button to clear mesh-stack-config.

3. Using IOS nrfMesh to provision this device again, after provisioning finished, disconnect nrfMesh to this node, then click "reconnect" again, but nrfMesh cannot scan the device anymore.

BTW, I also using same steps for thingy52-mesh-provisioning-demo of mesh2.2.0, the issue happen too, please check it.

Regards,

Joseph

  • Hi Joseph, 

    In the old SDK we didn't store the proxy state into flash, then there shouldn't a side effect by calling proxy_disable().  But in v2.2.0 we store the state of proxy, so if we don't enable proxy agan it won't work . So either you would need to call proxy_enable() on every start up (if you want proxy to be always enabled), or you can just remove the proxy_disable() in the node reset button handler. 

Related