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

how to create more groups in mesh

I create a mesh use Mesh SDK v1.0.1 and there is just a group ,and I want to create more groups. I compared it with Mesh SDKv2.0.1 which divide servers into two groups . The servers subscribe the group address .But I still don't know  how to create the group address and make different servers subscribe them.could you help me?

Parents
  • Hi, 

     

    Could you let me know if any particular reason you can't change to SDK v2.0.1 ? 

    If you have to stick to SDK v1.0.1 and want to assign different group address to different server, take a look in PROV_STATE_CONFIG_SUBSCRIPTION in do_config_step in provisioner.c 

    This is where the group address GROUP_ADDRESS (=0xCAFE)  got assigned to the model's subscription on the server. You can set different group addresses here.

    And on the client side, if you want to set a client to publish to different group address you change it inside access_setup() in main.c or use dsm_address_publish_add() and access_model_publish_address_set() to change. 

     

  • I don't use the SDK v2.0.1 because I need receive the RSSI from the client and I have add  other modules to it.

    I have read the codes that  you have had   mentioned . but I'm confused about the sequence of provision procedure to add the unicast  address and group address (I mean that how to judge the server's address to add the subscribtion). And do I need to add other addresses except 0xCAFE if I set different group addresses ?

Reply
  • I don't use the SDK v2.0.1 because I need receive the RSSI from the client and I have add  other modules to it.

    I have read the codes that  you have had   mentioned . but I'm confused about the sequence of provision procedure to add the unicast  address and group address (I mean that how to judge the server's address to add the subscribtion). And do I need to add other addresses except 0xCAFE if I set different group addresses ?

Children
Related