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

How to test relay function in light switch example using nrf mesh app as provisioner?

Hello 

I am using 3 boards , one is client (nrf52840) and other two boards as server(nRF52840).

Using light switch example I want to test relay function, nrf mesh app as provisioner. Mesh SDK v3.0.0 is used.

Please guide me for addressing scheme for publish and subscribe in mesh app inorder to test relay function.

Thanks

  • Hi,

    The light switch example comes with relay function enabled. In the nRF Mesh app assign a app key to the devices. To send a message from server to client, the publish address of the server should be the node address of client. You can also create a group and subscribe the device to that group to get messages from other devices in the group.

    Regards,

    Sunil

  • Hi

    I got what you said.

    But what i want to know is, after provisioning of each node using mesh app it needs to be configured.

    Client needs to assign publish address for specific server or group, Server needs to subscribe to that address to receive message.

    Now my question is 

    If server re-transmit message(relay feature), then it needs to publish message.

    Does server needs to assign publish address(same as publish address by client) for relay function to work? 

    Thanks 

     

  • Hit said:
    Does server needs to assign publish address(same as publish address by client) for relay function to work?

     No, you don't need to assign the publication address for relay-messages. The destination address for the message will be received with the message itself. 

    Best regards, 
    Joakim 

Related