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

How publish and subscribe works in Mesh network

I want to develop a mesh network where I can send/receive data from one device to other devices(sleepy sensors) through relay/router node (always on).

For example

A (Publish address: 0x001, Subscribed address: 0x002)

B and C (Relay node)

D and E (Publish address: 0x002, Subscribed address: 0x001)

In this case, A and is not in the range of D and E, so when it publishes data will it be received by D and E via B or C node?

Is there any specific parameters are there in APIs by which we can set the node as Relay of LPN?

Parents
  • Hi,

    In this case, A and is not in the range of D and E, so when it publishes data will it be received by D and E via B or C node?

    Yes, the D and E node should receive the data published by node A, using node B or C as a relay.

    Is there any specific parameters are there in APIs by which we can set the node as Relay of LPN?

    The relay feature is enabled by default in our Light switch example.

    Relay nodes are used to increase the range of communication throughout the mesh network by re-broadcasting received mesh messages. These nodes keep the radio running constantly, scanning for incoming advertising packets. 

    The point with LPN is to decrease power consumption. The LPN establishes a special relationship, called friendship, with a neighboring Friend node that stores all the mesh messages. The LPN is in sleep mode most of the time, it wakes up periodically and polls the Friend node for any new messages. So LPN can't be relay nodes.

    Have a look at this documentation for more info regarding Low Power Node feature.

  • Ok, Thanks.

    Is there any example code is available for a friend node?

Reply Children
No Data
Related