From bd3e8b2fc80c35c8bc92f55e8b1f3afa443f3027 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 14 May 2025 13:28:57 -0500 Subject: [PATCH] Explicit map report opt-in --- meshtastic/module_config.proto | 5 +++++ meshtastic/mqtt.proto | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/meshtastic/module_config.proto b/meshtastic/module_config.proto index 50b4640..06ca899 100644 --- a/meshtastic/module_config.proto +++ b/meshtastic/module_config.proto @@ -95,6 +95,11 @@ message ModuleConfig { * Bits of precision for the location sent (default of 32 is full precision). */ uint32 position_precision = 2; + + /* + * Whether we should report our location to the map + */ + optional bool should_report_location = 3; } /* diff --git a/meshtastic/mqtt.proto b/meshtastic/mqtt.proto index 2dbc820..00c2b2e 100644 --- a/meshtastic/mqtt.proto +++ b/meshtastic/mqtt.proto @@ -103,4 +103,9 @@ message MapReport { * Number of online nodes (heard in the last 2 hours) this node has in its list that were received locally (not via MQTT) */ uint32 num_online_local_nodes = 13; + + /* + * User has opted in to share their location (map report) with the mqtt server + */ + bool has_opted_in = 14; }