m2mMesh icon indicating copy to clipboard operation
m2mMesh copied to clipboard

wrong mac address from received message

Open jordigrau83 opened this issue 10 months ago • 0 comments

Hi! First thanks for your work, its a nice project! I tried the example 7 that sends a message to every node on the mesh, it sends the messages correctly, but there's a weird thing on the mac address on the received messages.

To try everyting I'm sending a string with sender and receiver MAC adresses.

  • with only 2 nodes A B, everything is ok, both get the message from the correct source m2mMesh.getMeshAddress(m2mMesh.sourceId()) :

    Node A get message from B and Mac address from message is B Node B get message from A and Mac address from message is A

  • with 3 nodes A B C, all receive the messages correctly, BUT the m2mMesh.sourceId() is WRONG:

    Node A get message from B and Mac address from message is C Node A get message from C and Mac address from message is B

    Node B get message from A and Mac address from message is C Node B get message from C and Mac address from message is A

    Node C get message from A and Mac address from message is B Node C get message from B and Mac address from message is A

jordigrau83 avatar Apr 05 '24 12:04 jordigrau83