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

How to get light switch servers publishing to group address 0xCAFE?

Hi,

in provisioner.c,

/* configure the publication parametrs for the on/off server */

case PROV__STATE_CONFIG_PUBLICATION_ONOFF: 

I've changed publish_address.type  to NRF_MESH_TYPE_GROUP and .value to GROUP_ADDRESS.

Using nRf52832 and mesh v1.0, is that all i need to do to get the servers transmitting to the group address? or is there more to it?

thanks.

Parents
  • Hello,

    Yes. That seems about right.

    .type = NRF_MESH_ADDRESS_TYPE_UNICAST is an address that is only to one specific device, while NRF_MESH_ADDRESS_TYPE_GROUP is an address that more nodes can subscribe to.

    I have not tested this, but if you experience some issues, you may try to use the implementation from case PROV_STATE_CONFIG_SUBSCRIPTION instead.

    Note that this will tell the light switch servers to listen on this channel. You also need to have something to publish on this channel in order to turn the LEDs on and off. 

    If you are starting experimenting with this now, I would really recommend that you move to a later SDK, Mesh SDK v 2.2.0. Here the group addresses are used, in addition to a lot of bug fixes in the examples.

    In this SDK you can choose whether you want to use the provisioner node (provisioning is not done with the light switch client example anymore) or if you want to use the provisioning app for iOS or Android. This app is a great tool to get familiar with setting up subscription and publication channels for the Mesh Nodes. 

    Best regards,

    Edvin

Reply
  • Hello,

    Yes. That seems about right.

    .type = NRF_MESH_ADDRESS_TYPE_UNICAST is an address that is only to one specific device, while NRF_MESH_ADDRESS_TYPE_GROUP is an address that more nodes can subscribe to.

    I have not tested this, but if you experience some issues, you may try to use the implementation from case PROV_STATE_CONFIG_SUBSCRIPTION instead.

    Note that this will tell the light switch servers to listen on this channel. You also need to have something to publish on this channel in order to turn the LEDs on and off. 

    If you are starting experimenting with this now, I would really recommend that you move to a later SDK, Mesh SDK v 2.2.0. Here the group addresses are used, in addition to a lot of bug fixes in the examples.

    In this SDK you can choose whether you want to use the provisioner node (provisioning is not done with the light switch client example anymore) or if you want to use the provisioning app for iOS or Android. This app is a great tool to get familiar with setting up subscription and publication channels for the Mesh Nodes. 

    Best regards,

    Edvin

Children
No Data
Related