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

How to know when a mesh node has been configured?

This might seem like a really banal question, but i could need some clarification on this.

My understanding is that the config_client should be used on the network provisioner node and the config_server should be used on all devices that should be provisioned and configured. Is this true?

I am asking because i would like to register a callback function for when a device with a client model has been configured, but the config_server API doesn't seem support this. This seems to indicate that the config_client should be used to configure clients and the config_server should be used to configure server models. This just seems weird and unlikely.

Also, if i am right that the config_client should only be used be the provisioning device, then how should i indicate to a device with a client model, that it has been configured?

Edit 1: After looking around the info center, I have been convinced that the config_client should only be used by the provisioning device. Source.

I am still interested in knowing if it is possible to know when a device has been provisioned?

  • I have figured out my misunderstanding.

    The configuring of a node is never "done" in the same way the provisioning of a device is. That is, while the provisioning process has some well defined steps it has to go through before the process is complete. The provisioner node can always reconfigure a node with the config_client. It is therefore never completely done configuring a node.

    It is possible to know when the configuring of a device is complete though, if you youself define how your node should be configured. When the provisioner node receives a status message from the last step of the configuring of a device, you know the process is complete.

    Therefor if your project is like the Light Switch example project from Mesh SDK 0.10, then when a CONFIG_OPCODE_MODEL_SUBSCRIPTION_STATUS message is received, the configuring is complete.

Related