Skip to content

Commit 47ec99a

Browse files
authored
Merge pull request #684 from meshtastic/map-report-opt-in
Explicit map report opt-in
2 parents 8cb3e62 + f76d353 commit 47ec99a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

meshtastic/module_config.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ message ModuleConfig {
9595
* Bits of precision for the location sent (default of 32 is full precision).
9696
*/
9797
uint32 position_precision = 2;
98+
99+
/*
100+
* Whether we have opted-in to report our location to the map
101+
*/
102+
bool should_report_location = 3;
98103
}
99104

100105
/*

meshtastic/mqtt.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,10 @@ message MapReport {
103103
* Number of online nodes (heard in the last 2 hours) this node has in its list that were received locally (not via MQTT)
104104
*/
105105
uint32 num_online_local_nodes = 13;
106+
107+
/*
108+
* User has opted in to share their location (map report) with the mqtt server
109+
* Controlled by map_report.should_report_location
110+
*/
111+
bool has_opted_report_location = 14;
106112
}

0 commit comments

Comments
 (0)