File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1160
1160
#define MY_TRANSPORT_DISCOVERY_INTERVAL_MS (20*60*1000ul)
1161
1161
#endif
1162
1162
1163
+ /**
1164
+ *@def MY_TRANSPORT_N2N_FEATURE_DISABLED
1165
+ *@brief If defined, disables the node to node transport attempts
1166
+ */
1167
+ //#define MY_TRANSPORT_N2N_FEATURE_DISABLED
1168
+
1163
1169
/**
1164
1170
*@def MY_TRANSPORT_UPLINK_CHECK_DISABLED
1165
1171
*@brief If defined, disables uplink check to GW during transport initialisation
2422
2428
// transport
2423
2429
#define MY_PARENT_NODE_IS_STATIC
2424
2430
#define MY_REGISTRATION_CONTROLLER
2431
+ #define MY_TRANSPORT_N2N_FEATURE_DISABLED
2425
2432
#define MY_TRANSPORT_UPLINK_CHECK_DISABLED
2426
2433
#define MY_TRANSPORT_SANITY_CHECK
2427
2434
#define MY_NODE_LOCK_FEATURE
Original file line number Diff line number Diff line change @@ -548,6 +548,7 @@ bool transportRouteMessage(MyMessage &message)
548
548
#else
549
549
// not a repeater, all traffic routed via parent or N2N
550
550
route = _transportConfig.parentNodeId ;
551
+ #if !defined(MY_TRANSPORT_N2N_FEATURE_DISABLED)
551
552
// Try node2node traffic if destination is not parent and is not a broadcast
552
553
if (destination != route && destination != BROADCAST_ADDRESS) {
553
554
// N2N: assume node is in vicinity. If transmission fails, hand over to parent
@@ -557,6 +558,7 @@ bool transportRouteMessage(MyMessage &message)
557
558
}
558
559
TRANSPORT_DEBUG (PSTR (" !TSF:RTE:N2N FAIL\n " ));
559
560
}
561
+ #endif
560
562
#endif
561
563
}
562
564
// send message
You can’t perform that action at this time.
0 commit comments