From 1b3e50968a3ef3a2fd3eb02332120d1c9f778a9d Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 29 Jan 2023 12:45:37 -0600 Subject: [PATCH] Added rebroadcast mode to device --- meshtastic/config.proto | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 31314cd..49999e0 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -58,6 +58,29 @@ message Config { TRACKER = 5; } + /* + * Defines the device's behavior for how messages are rebroadcast + */ + enum RebroadcastMode { + /* + * Default behavior. + * Rebroadcast any observed message, if it was on our private channel or from another mesh with the same lora params. + */ + ALL = 0; + + /* + * Same as behavior as ALL but skips packet decoding and simply rebroadcasts them. + * Only available in Repeater role. + */ + ALL_SKIP_DECODING = 1; + + /* + * Ignores observed messages from foreign meshes that are open or those which it cannot decrypt. + * Only rebroadcasts message on the nodes local primary / secondary channels. + */ + LOCAL_ONLY = 2; + } + /* * Sets the role of node */ @@ -86,6 +109,10 @@ message Config { */ uint32 buzzer_gpio = 5; + /* + * Sets the role of node + */ + RebroadcastMode rebroadcast_mode = 6; } /*