-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adds option to disable N2N (#1439) #1475
base: development
Are you sure you want to change the base?
Changes from all commits
8ae642a
254756c
095339a
968a3e2
68c54b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -545,6 +545,7 @@ bool transportRouteMessage(MyMessage &message) | |
#endif | ||
} | ||
#else | ||
#if !defined(MY_TRANSPORT_N2N_FEATURE_DISABLED) | ||
if (destination > GATEWAY_ADDRESS && destination < BROADCAST_ADDRESS) { | ||
// node2node traffic: assume node is in vincinity. If transmission fails, hand over to parent | ||
if (transportSendWrite(destination, message)) { | ||
|
@@ -553,6 +554,9 @@ bool transportRouteMessage(MyMessage &message) | |
} | ||
TRANSPORT_DEBUG(PSTR("!TSF:RTE:N2N FAIL\n")); | ||
} | ||
#else | ||
TRANSPORT_DEBUG(PSTR("TSF:RTE:N2N DIS\n")); | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about adding an else clause here, with something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I will try it out and check how it works. |
||
route = _transportConfig.parentNodeId; // not a repeater, all traffic routed via parent | ||
#endif | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a small note on when this feature can/should be used? Maybe some sort of use case description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mfalkvidd, my use case is a node that is located in a dead zone and can only be reached via a repeater.
When the node sends telegrams to other nodes or the gateway, I always get the error message !TSF:RTE:N2N FAIL in the log. This is a waste of node battery energy and in addition it pollutes the airwaves with traffic that interferes with the communication of other nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know what causes the node to try to sent to other nodes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mfalkvidd, I am intentionally sending the message to another actuator node which unfortunately is not directly reachable via N2N.