Retrieve MAC address from a mesh message in connect sdk

Hi,

I am using the mesh_chat example in ncs v2.2.0

Whether it is possible to retrieve the MAC address of the source node of a received mesh message (not the mesh address)??

Thanks!

Parents Reply
  • Hi,

    I saw the reply, but since the range covered by the relay packets are way less than 15 mts, so i implemented a custom relay function that forwards the received packet.

    But i need to add the MAC addresses of each device along the route(not the mesh address).

    In the above mentioned ticket, he said that it is possible to get the MAC of the previous node, can u guide me how to get that MAC address into the user handler?

    Thanks!

Children
  • Vignesh R said:

    In the above mentioned ticket, he said that it is possible to get the MAC of the previous node, can u guide me how to get that MAC address into the user handler?

    No I believe he said you could get the Mesh address from the previous node, which could be enough if the customer just wanted to differentiate between the different servers. That should be easy to find in bt_mesh_msg_ctx. If its enough for you as well, I guess you can take it and append it to the message itself somehow.

    However, I assume you really need the MAC addresses. for some reason? Could you expand a bit on your use case? What you are trying to do seems very difficult for a number of reasons.

    Regards,

    Elfving

Related