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

Dynamic Mesh Nodes

hi,

In Light switch Example ahead of time he have 3 Servers so we set SERVER_COUNT=3

if I want to develop Mesh Network..Where I introduce new Node, Provision the node and get going..

How to handle the situation if I don't know Total number of Nodes ahead of Time.

Thanks

  • Hi,

    The use of SERVER_COUNT in the light switch example is mostly for connecting each server to a button. Since there are four buttons on the DK, three are used for controling the LED on individual servers, and the last button is used for a group address controlling all the servers. So for that particular example, there is this limit of three servers (light bulbs) and one client (with four buttons.)

    The client of the light switch example does provisioning, but actually client and provisioner are two separate concepts and do not have to be on the same device. In fact we are currently working on separating the provisioner and the client in the light switch example, into two separate nodes.

    How to provision and configure the nodes of the network may vary from network to network. For instance, in the light switch example both provisioning and configuring are done from the client, and there is a maximum of four nodes total (including the client). I recommend looking at How to build a network for getting a better understanding of the concepts involved. It also shows what API calls and events from our nRF5 SDK for Mesh are involved in provisioning and configuration. Then you should be able to design your network according to your needs.

    Regards,
    Terje

Related