File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1111
1111
#define MY_TRANSPORT_DISCOVERY_INTERVAL_MS (20*60*1000ul)
1112
1112
#endif
1113
1113
1114
+ /**
1115
+ *@def MY_TRANSPORT_N2N_FEATURE_DISABLED
1116
+ *@brief If defined, disables the direct node to node transport send attempts
1117
+ */
1118
+ //#define MY_TRANSPORT_N2N_FEATURE_DISABLED
1119
+
1114
1120
/**
1115
1121
*@def MY_TRANSPORT_UPLINK_CHECK_DISABLED
1116
1122
*@brief If defined, disables uplink check to GW during transport initialisation
2313
2319
// transport
2314
2320
#define MY_PARENT_NODE_IS_STATIC
2315
2321
#define MY_REGISTRATION_CONTROLLER
2322
+ #define MY_TRANSPORT_N2N_FEATURE_DISABLED
2316
2323
#define MY_TRANSPORT_UPLINK_CHECK_DISABLED
2317
2324
#define MY_TRANSPORT_SANITY_CHECK
2318
2325
#define MY_NODE_LOCK_FEATURE
Original file line number Diff line number Diff line change @@ -545,6 +545,7 @@ bool transportRouteMessage(MyMessage &message)
545
545
#endif
546
546
}
547
547
#else
548
+ #if !defined(MY_TRANSPORT_N2N_FEATURE_DISABLED)
548
549
if (destination > GATEWAY_ADDRESS && destination < BROADCAST_ADDRESS) {
549
550
// node2node traffic: assume node is in vincinity. If transmission fails, hand over to parent
550
551
if (transportSendWrite (destination, message)) {
@@ -553,6 +554,7 @@ bool transportRouteMessage(MyMessage &message)
553
554
}
554
555
TRANSPORT_DEBUG (PSTR (" !TSF:RTE:N2N FAIL\n " ));
555
556
}
557
+ #endif
556
558
route = _transportConfig.parentNodeId ; // not a repeater, all traffic routed via parent
557
559
#endif
558
560
}
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ MY_TRANSPORT_TIMEOUT_EXT_FAILURE_STATE_MS LITERAL1
78
78
MY_TRANSPORT_TIMEOUT_FAILURE_STATE_MS LITERAL1
79
79
MY_TRANSPORT_UPLINK_CHECK_DISABLED LITERAL1
80
80
MY_TRANSPORT_WAIT_READY_MS LITERAL1
81
+ MY_TRANSPORT_N2N_FEATURE_DISABLED LITERAL1
81
82
82
83
# debug
83
84
MY_DEBUG LITERAL1
You can’t perform that action at this time.
0 commit comments