Explicit map report opt-in

pull/684/head
Ben Meadors 2025-05-14 13:28:57 -05:00
rodzic 8cb3e62a0d
commit bd3e8b2fc8
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -95,6 +95,11 @@ message ModuleConfig {
* Bits of precision for the location sent (default of 32 is full precision). * Bits of precision for the location sent (default of 32 is full precision).
*/ */
uint32 position_precision = 2; uint32 position_precision = 2;
/*
* Whether we should report our location to the map
*/
optional bool should_report_location = 3;
} }
/* /*

Wyświetl plik

@ -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) * 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; 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;
} }