How server in light-switch example can subscribe to a group address when work with coexist example as client

Hi.

I use latest version of sdk and mesh. I run co-exist example as client and server in switch-light example as server. in client side i have add group address as you have said in https://devzone.nordicsemi.com/f/nordic-q-a/29879/subscribe-a-group-address-for-the-mesh-message but my server does not answer to the set message. I have added address group of 0xC00A, 0XC00B,0xC00C,0xC00D to the list in client side. But i do not know when changes should be done in server side so that it receives the set message and react to it. 

Furthermore I do not know which group addresses i am allowded to use. I use provisioner example for provisioning however i want to have more than two groups.

Thanks  

  • Hi,

    You can use group addresses in the range 0xC000 to 0xFEFF inclusive, ref. the Bluetooth Mesh Profile specification v1.0.1 section 3.4.2.4 Group address.

    Setting up the Bluetooth mesh network involves two processes: Provisioning and configuration. The provisioning brings nodes into the network, providing each node with addresses, keys, etc. in order to participate in the network. The configuration sets up how the models are used, including addresses. The provisioner example fills both those tasks, mostly because the configuration uses the device key, which the provisioner set up during provisioning. Therefore, the provisioner is the only node in the network that knows the device key of all devices.

    If using group addresses, you should configure the client to publish to the group address, and the server to subscribe to the same group address. Each model can publish to one addres only, but they can subscribe to many. Before changing the provisioner example to configure the network as you want it, you may want to test out the configurations manually using the nRF Mesh app.

    Regards,
    Terje

Related