m2mMesh
m2mMesh copied to clipboard
wrong mac address from received message
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