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

Mesh SDK 2.2.0 Group Address

Hi Developers, 

I am exploring the light switch examples, client, server and provisioner, every time a node is provisioned it uses a unicast address, what if I want to use different groups for different nodes functionalities 

what changes should I do to manage multiple group address?

what changes should I do to node_setup.c inside the provisioner example, and/or the client and server examples?

Parents
  • Hi,

    I might be wrong here, but what you want to do is to publish/subscribe to a group address right? 

    Not sure what you mean by " manage multiple group address"? Do want to publish/subscribe to multiple group addresses?

    Inside node_setup.c, if you have a look at NODE_SETUP_CONFIG_PUBLICATION_ONOFF_CLIENT1 and NODE_SETUP_CONFIG_PUBLICATION_ONOFF_CLIENT2, you can see how the example configure the client to publish to two different group addresses. Inside NODE_SETUP_CONFIG_SUBSCRIPTION_ONOFF_SERVER you will find how the example configure the servers to subscribe to the group addresses.

Reply
  • Hi,

    I might be wrong here, but what you want to do is to publish/subscribe to a group address right? 

    Not sure what you mean by " manage multiple group address"? Do want to publish/subscribe to multiple group addresses?

    Inside node_setup.c, if you have a look at NODE_SETUP_CONFIG_PUBLICATION_ONOFF_CLIENT1 and NODE_SETUP_CONFIG_PUBLICATION_ONOFF_CLIENT2, you can see how the example configure the client to publish to two different group addresses. Inside NODE_SETUP_CONFIG_SUBSCRIPTION_ONOFF_SERVER you will find how the example configure the servers to subscribe to the group addresses.

Children
Related