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

light switch example modification (using nRF SDK for Mesh 2.0.1)

Hi there,

I was hoping someone could help me out. I recently got a hold of the nRF5 SDK for Mesh v2.0.1, and had a play around with the light switch example. I modified the code to instead send sensor data from each server instead of a simple on/off setting etc (like in the Nordic Thingy52 mesh demo). At the moment I am only able to receive sensor data at the client side from 2 out of 6 servers on the mesh (the two servers with addresses 0x0105 & 0x0106 respectively).  I understand that the issue probably arises from the fact that the light switch example organises all nodes into odd/even groups. What I would like to know is how to organise all servers into one group OR maybe set it up so that it is like the Thingy52 mesh demo which has two groups, but the first group is for all the nodes, and the second group is for user defined node etc. Any help and/or setup code snippets  would be greatly appreciated thanks Slight smile

Parents
  • you may want to look at the node_setup.c which perform the node configuration. 

    associating the element address to odd/even group address can be seen in the handling of case NODE_SETUP_CONFIG_SUBSCRIPTION_ONOFF_SERVER inside config_step_execute().

    jing

  • I tried this, and am able to receive data at the server end still, but no data at the client end. Not 100% sure what I am setting incorrectly.

Reply
  • I tried this, and am able to receive data at the server end still, but no data at the client end. Not 100% sure what I am setting incorrectly.

Children
No Data