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

Unprovision device from provisioner

I'm trying to filter devices by first provisioning a device then checking the composition data for vendor ID,etc... It is a real pain that all that data is only available after provisioning. I'm wondering how to unprovision the device if the composition data doesn't match what I'm expecting. A lot of forums I've found so far solved it on the server side, but if the server isn't a device i've programmed with that functionality how do I unprovision it?

  • I actually got the node to reset by calling: 

    config_client_node_reset();

    in the node_setup_config_client_event_process() in the light_switch_provisioner example  before it saves the composition data. Now My provisioner is stuck in a loop trying to configure that device and I'm unsure how to clear this state on my provisioners side. 

  • Hi Shane, 

    When do you call config_client_node_reset() ? 

    If you call it inside node_setup_config_client_event_process() where you check for the composition data then you can change the mp_config_step to NODE_SETUP_DONE to finish the configuration process (if it's the node that you don't want to configure)

    If you don't have control over the Provisionee side, it's pretty hard to filter out the devices if they come from a specific vendor. If you do have control over your device, you can think of sending extra advertising packet that telling which Device UUID your device has , so your provisioner by scanning first the proprietary advertising packet would know which Device UUID it should look for. 

Related