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

relay node in mesh

i am using three boards , one is client (nrf52840) and other two boards as server(nRF52832) using light switch example . i want to get the message from  client board ,to relay node and from relay node to server. i want to do hopping from A ---B-----C using relay . 

1.  what are the changes i need to do in light switch example (both in client and server)


2. how to publish /subscribe in nRF mesh app for these three boards  one client , one relay node and another server , procedure to achieve this .i am placing the A and C nodes far away which is not in the range of A . 

anyone have done this please guide me 

thanks in advance 

Parents
  • Hi,

    In Bluetooth mesh you never think about what route a particular message will take through the network. All you need to do for messages to reach their destination is to provision all the nodes into the network. Then everything will work as long as the network is contiguous (and as long as the path that a message must take is shorter than the configured time to live.)

    For configuration, node A should publish to the address of node C or to a group address that node C subscribes to. It should also use an application key. If you used a group address, then node C must subscribe to that group address. Node C must also use the same application key.

    Regards,
    Terje

  • Thank you for your response tesc. Do you understand my question.  Actually I want to send the message from A (client ) ----B (server 1which acts as relay node) ------C ( server 2). I want to do hopping from one node to another and so on and should reach the destination .how to do publish /subscribe ?

    I know only Unicast address of each device .. which address I should give for subscribe. Can you clearly explain me 

    Thanks in advance

  • Do you understand my question

    No:  your question doesn't really make sense - as says,  you don't control the routing within the mesh

Reply Children
Related