Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong mac address from received message #4

Open
jordigrau83 opened this issue Apr 5, 2024 · 0 comments
Open

wrong mac address from received message #4

jordigrau83 opened this issue Apr 5, 2024 · 0 comments

Comments

@jordigrau83
Copy link

jordigrau83 commented Apr 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant