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

How to unprovision nrf Mesh DK board using the hardware?

Hello, 

I am using nrf52832 with nrf Mesh DK. Is there a way to unprovision the board from the hardware  or command line and not from the app?

Many thanks in advance ,

Rp

Parents Reply
  • Hi Hung,

    I am attempting to reset a provisioned node inside the main function. I took your advice and used the code from the light switch server example (as seen below). Whenever this gets called however I am getting a mesh weak error  "app_error_weak.c, 108, Mesh assert at 0x0002BFEE (:0)". I am on the latest SDKs. I figured out that the function causing the error is "mesh_stack_config_clear". Any ideas on why this might be happening or any ideas on another way to reset a provisioned board from the main? 

     if (mesh_stack_is_device_provisioned())
                {
    #if MESH_FEATURE_GATT_PROXY_ENABLED
                    (void) proxy_stop();
    #endif
                    mesh_stack_config_clear();
                    node_reset();
                }
                else
                {
                    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "The device is unprovisioned. Resetting has no effect.\n");
                }
             
Children
Related