Packets sent between nodes get larger every iteration
Opened this issue · 0 comments
AMasetti commented
After the packets are received by a node the otherValues
variable gets flooded with lots of repeated messages with the same info. This obviously isn't the final code displayed in the ReadMe.md
. Multiple unused global variables which are constantly modified yield this erratic behavior.
Possible changes to make the code faster:
- Implement a Queue for messages
- Remove code that isn't used anymore
- Correctly set the destination in code, a Mesh is a Mesh because one to many communication
- Implement a buffer of messages that does not repeat itself after each iteration
- Remove the synch messages since we can already add nodes if a new valid message is received
I really appreciate this project, and I'm willing to help if needed, keep it up guys!