From 02a4eed3fca4cb017ccfefcac4f355a09181ac0a Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 5 Dec 2024 13:57:52 +0100 Subject: [PATCH] Add ignore_direct radio option --- meshtastic/config.options | 1 + meshtastic/config.proto | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/meshtastic/config.options b/meshtastic/config.options index 9310cf0d..f08c37d4 100644 --- a/meshtastic/config.options +++ b/meshtastic/config.options @@ -8,6 +8,7 @@ # Max of three ignored nodes for our testing *LoRaConfig.ignore_incoming max_count:3 +*LoRaConfig.ignore_direct max_count:3 *LoRaConfig.tx_power int_size:8 *LoRaConfig.bandwidth int_size:16 diff --git a/meshtastic/config.proto b/meshtastic/config.proto index aaf340bd..a9eb5959 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -1006,6 +1006,14 @@ message Config { * Sets the ok_to_mqtt bit on outgoing packets */ bool config_ok_to_mqtt = 105; + + /* + * For testing this simulate a node which cannot be heared directly. + * It is similar to ignore_incoming however packets will only be dropped if + * the hop count is identical to the start hop count, thus after at least + * one hop the packet will be accepted. + */ + repeated uint32 ignore_direct = 106; } message BluetoothConfig {