I want to add a node(server) in multiple group in Mesh.
Application is if any switch pressed next two corresponding light to be trigger to on. for that one server subscribe to two client for trigger.
How can I achieve this.
I want to add a node(server) in multiple group in Mesh.
Application is if any switch pressed next two corresponding light to be trigger to on. for that one server subscribe to two client for trigger.
How can I achieve this.
Hi Bivay,
You can achieve this by using the nrf Mesh mobile application. You can use the application to configure the publishing and subscription of the server and clients.
My understanding is that a client model element can only publish to one group, while a server can subscribe to multiple groups.
I believe there are two ways to do this, either both clients can publish to the same group and the server only subscribes to one group, or each client can publish to a separate group while your server subscribes to both groups.
Someone can correct me if I am wrong.
Have you used the mobile application before?
I used Mobile application for provisioning but I can subscribe to one group only for each element.
Goal is not limited to two groups it can be larger than publish to one group and subscribe to another group will not work.
Are you using the android or IOS version? Are you getting an error when you try to subscribe to more than one group or what?
In you project folder there is an include file nrf_mesh_config_app.h
Open that file and check the #define ACCESS_SUBSCRIPTION_LIST_COUNT
You might have to increase that value if you want to subscribe to more than one group
Thanks for solution its works
can I publish to multiple group similarly
can I publish to multiple group similarly
Awesome, happy to help.
So what I was trying to explain to you before was that a client model element can only publish to one group.
For example, let's say you have a mesh client node with only one generic on/off element. That element can only publish to one address.
But what you can do is have a mesh client node with multiple generic on/off elements. Then each of those elements can publish to a different group, for example one client node with 6 generic on/off elements (light switches for example). Each of those elements can then publish to a separate group.
Does that make sense?
Thanks it make sense. You solved problem