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

connect to right address

Hello everyone
I have a problem where I want to know when a node (server) connects to the gateway (client), how can you control which node, for example, turns light on and which node measures the temperature. have tried to look light demo but do not think i can figure it out. the reason I have to know is that I need to create a user interface where a user should be able to control different devices
user nof52840
segger embedded studio

Parents
  • The nordic mesh sdk does not currently have a gateway example. By gateway I am guessing you want one node that is able to communicate between the mesh network & the cloud for example. The client is the provisioner in the light switch example, i.e. the device that adds the other devices to the mesh network.

    In the light switch example, the provisioner (client) turns the lights on & off (see link). You could update the server code for example so that all servers can measure the temperature via a temperature sensor. Or you could have a separate server code so that one server measures the temperature & the other servers don't (i.e. one client FW, one server FW with temperature sensing, one server FW without temperature sensing). If you want temperature sensing, you could make a copy of the light switch example & update the code to read a temperature sensor. 

    It is good practice when adding code to Nordic SDK examples to include your own .c & .h files so that it is easy to port between different SDK versions later. That way, you know which code you have written. Hope that helps!

Reply
  • The nordic mesh sdk does not currently have a gateway example. By gateway I am guessing you want one node that is able to communicate between the mesh network & the cloud for example. The client is the provisioner in the light switch example, i.e. the device that adds the other devices to the mesh network.

    In the light switch example, the provisioner (client) turns the lights on & off (see link). You could update the server code for example so that all servers can measure the temperature via a temperature sensor. Or you could have a separate server code so that one server measures the temperature & the other servers don't (i.e. one client FW, one server FW with temperature sensing, one server FW without temperature sensing). If you want temperature sensing, you could make a copy of the light switch example & update the code to read a temperature sensor. 

    It is good practice when adding code to Nordic SDK examples to include your own .c & .h files so that it is easy to port between different SDK versions later. That way, you know which code you have written. Hope that helps!

Children
No Data
Related