Skip to content

Commit a51a6b8

Browse files
[create-pull-request] automated change (#6812)
Co-authored-by: thebentern <[email protected]>
1 parent 1af4a0b commit a51a6b8

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

src/mesh/generated/meshtastic/deviceonly.pb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ extern const pb_msgdesc_t meshtastic_BackupPreferences_msg;
355355
/* Maximum encoded size of messages (where known) */
356356
/* meshtastic_NodeDatabase_size depends on runtime parameters */
357357
#define MESHTASTIC_MESHTASTIC_DEVICEONLY_PB_H_MAX_SIZE meshtastic_BackupPreferences_size
358-
#define meshtastic_BackupPreferences_size 2265
358+
#define meshtastic_BackupPreferences_size 2267
359359
#define meshtastic_ChannelFile_size 718
360360
#define meshtastic_DeviceState_size 1722
361361
#define meshtastic_NodeInfoLite_size 190

src/mesh/generated/meshtastic/localonly.pb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ extern const pb_msgdesc_t meshtastic_LocalModuleConfig_msg;
188188
/* Maximum encoded size of messages (where known) */
189189
#define MESHTASTIC_MESHTASTIC_LOCALONLY_PB_H_MAX_SIZE meshtastic_LocalConfig_size
190190
#define meshtastic_LocalConfig_size 743
191-
#define meshtastic_LocalModuleConfig_size 667
191+
#define meshtastic_LocalModuleConfig_size 669
192192

193193
#ifdef __cplusplus
194194
} /* extern "C" */

src/mesh/generated/meshtastic/module_config.pb.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ typedef struct _meshtastic_ModuleConfig_MapReportSettings {
112112
uint32_t publish_interval_secs;
113113
/* Bits of precision for the location sent (default of 32 is full precision). */
114114
uint32_t position_precision;
115+
/* Whether we have opted-in to report our location to the map */
116+
bool should_report_location;
115117
} meshtastic_ModuleConfig_MapReportSettings;
116118

117119
/* MQTT Client Config */
@@ -505,7 +507,7 @@ extern "C" {
505507
/* Initializer values for message structs */
506508
#define meshtastic_ModuleConfig_init_default {0, {meshtastic_ModuleConfig_MQTTConfig_init_default}}
507509
#define meshtastic_ModuleConfig_MQTTConfig_init_default {0, "", "", "", 0, 0, 0, "", 0, 0, false, meshtastic_ModuleConfig_MapReportSettings_init_default}
508-
#define meshtastic_ModuleConfig_MapReportSettings_init_default {0, 0}
510+
#define meshtastic_ModuleConfig_MapReportSettings_init_default {0, 0, 0}
509511
#define meshtastic_ModuleConfig_RemoteHardwareConfig_init_default {0, 0, 0, {meshtastic_RemoteHardwarePin_init_default, meshtastic_RemoteHardwarePin_init_default, meshtastic_RemoteHardwarePin_init_default, meshtastic_RemoteHardwarePin_init_default}}
510512
#define meshtastic_ModuleConfig_NeighborInfoConfig_init_default {0, 0, 0}
511513
#define meshtastic_ModuleConfig_DetectionSensorConfig_init_default {0, 0, 0, 0, "", 0, _meshtastic_ModuleConfig_DetectionSensorConfig_TriggerType_MIN, 0}
@@ -521,7 +523,7 @@ extern "C" {
521523
#define meshtastic_RemoteHardwarePin_init_default {0, "", _meshtastic_RemoteHardwarePinType_MIN}
522524
#define meshtastic_ModuleConfig_init_zero {0, {meshtastic_ModuleConfig_MQTTConfig_init_zero}}
523525
#define meshtastic_ModuleConfig_MQTTConfig_init_zero {0, "", "", "", 0, 0, 0, "", 0, 0, false, meshtastic_ModuleConfig_MapReportSettings_init_zero}
524-
#define meshtastic_ModuleConfig_MapReportSettings_init_zero {0, 0}
526+
#define meshtastic_ModuleConfig_MapReportSettings_init_zero {0, 0, 0}
525527
#define meshtastic_ModuleConfig_RemoteHardwareConfig_init_zero {0, 0, 0, {meshtastic_RemoteHardwarePin_init_zero, meshtastic_RemoteHardwarePin_init_zero, meshtastic_RemoteHardwarePin_init_zero, meshtastic_RemoteHardwarePin_init_zero}}
526528
#define meshtastic_ModuleConfig_NeighborInfoConfig_init_zero {0, 0, 0}
527529
#define meshtastic_ModuleConfig_DetectionSensorConfig_init_zero {0, 0, 0, 0, "", 0, _meshtastic_ModuleConfig_DetectionSensorConfig_TriggerType_MIN, 0}
@@ -539,6 +541,7 @@ extern "C" {
539541
/* Field tags (for use in manual encoding/decoding) */
540542
#define meshtastic_ModuleConfig_MapReportSettings_publish_interval_secs_tag 1
541543
#define meshtastic_ModuleConfig_MapReportSettings_position_precision_tag 2
544+
#define meshtastic_ModuleConfig_MapReportSettings_should_report_location_tag 3
542545
#define meshtastic_ModuleConfig_MQTTConfig_enabled_tag 1
543546
#define meshtastic_ModuleConfig_MQTTConfig_address_tag 2
544547
#define meshtastic_ModuleConfig_MQTTConfig_username_tag 3
@@ -702,7 +705,8 @@ X(a, STATIC, OPTIONAL, MESSAGE, map_report_settings, 11)
702705

703706
#define meshtastic_ModuleConfig_MapReportSettings_FIELDLIST(X, a) \
704707
X(a, STATIC, SINGULAR, UINT32, publish_interval_secs, 1) \
705-
X(a, STATIC, SINGULAR, UINT32, position_precision, 2)
708+
X(a, STATIC, SINGULAR, UINT32, position_precision, 2) \
709+
X(a, STATIC, SINGULAR, BOOL, should_report_location, 3)
706710
#define meshtastic_ModuleConfig_MapReportSettings_CALLBACK NULL
707711
#define meshtastic_ModuleConfig_MapReportSettings_DEFAULT NULL
708712

@@ -890,16 +894,16 @@ extern const pb_msgdesc_t meshtastic_RemoteHardwarePin_msg;
890894
#define meshtastic_ModuleConfig_CannedMessageConfig_size 49
891895
#define meshtastic_ModuleConfig_DetectionSensorConfig_size 44
892896
#define meshtastic_ModuleConfig_ExternalNotificationConfig_size 42
893-
#define meshtastic_ModuleConfig_MQTTConfig_size 222
894-
#define meshtastic_ModuleConfig_MapReportSettings_size 12
897+
#define meshtastic_ModuleConfig_MQTTConfig_size 224
898+
#define meshtastic_ModuleConfig_MapReportSettings_size 14
895899
#define meshtastic_ModuleConfig_NeighborInfoConfig_size 10
896900
#define meshtastic_ModuleConfig_PaxcounterConfig_size 30
897901
#define meshtastic_ModuleConfig_RangeTestConfig_size 10
898902
#define meshtastic_ModuleConfig_RemoteHardwareConfig_size 96
899903
#define meshtastic_ModuleConfig_SerialConfig_size 28
900904
#define meshtastic_ModuleConfig_StoreForwardConfig_size 24
901905
#define meshtastic_ModuleConfig_TelemetryConfig_size 46
902-
#define meshtastic_ModuleConfig_size 225
906+
#define meshtastic_ModuleConfig_size 227
903907
#define meshtastic_RemoteHardwarePin_size 21
904908

905909
#ifdef __cplusplus

src/mesh/generated/meshtastic/mqtt.pb.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ typedef struct _meshtastic_MapReport {
5454
uint32_t position_precision;
5555
/* Number of online nodes (heard in the last 2 hours) this node has in its list that were received locally (not via MQTT) */
5656
uint16_t num_online_local_nodes;
57+
/* User has opted in to share their location (map report) with the mqtt server
58+
Controlled by map_report.should_report_location */
59+
bool has_opted_report_location;
5760
} meshtastic_MapReport;
5861

5962

@@ -63,9 +66,9 @@ extern "C" {
6366

6467
/* Initializer values for message structs */
6568
#define meshtastic_ServiceEnvelope_init_default {NULL, NULL, NULL}
66-
#define meshtastic_MapReport_init_default {"", "", _meshtastic_Config_DeviceConfig_Role_MIN, _meshtastic_HardwareModel_MIN, "", _meshtastic_Config_LoRaConfig_RegionCode_MIN, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, 0, 0}
69+
#define meshtastic_MapReport_init_default {"", "", _meshtastic_Config_DeviceConfig_Role_MIN, _meshtastic_HardwareModel_MIN, "", _meshtastic_Config_LoRaConfig_RegionCode_MIN, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, 0, 0, 0}
6770
#define meshtastic_ServiceEnvelope_init_zero {NULL, NULL, NULL}
68-
#define meshtastic_MapReport_init_zero {"", "", _meshtastic_Config_DeviceConfig_Role_MIN, _meshtastic_HardwareModel_MIN, "", _meshtastic_Config_LoRaConfig_RegionCode_MIN, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, 0, 0}
71+
#define meshtastic_MapReport_init_zero {"", "", _meshtastic_Config_DeviceConfig_Role_MIN, _meshtastic_HardwareModel_MIN, "", _meshtastic_Config_LoRaConfig_RegionCode_MIN, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, 0, 0, 0}
6972

7073
/* Field tags (for use in manual encoding/decoding) */
7174
#define meshtastic_ServiceEnvelope_packet_tag 1
@@ -84,6 +87,7 @@ extern "C" {
8487
#define meshtastic_MapReport_altitude_tag 11
8588
#define meshtastic_MapReport_position_precision_tag 12
8689
#define meshtastic_MapReport_num_online_local_nodes_tag 13
90+
#define meshtastic_MapReport_has_opted_report_location_tag 14
8791

8892
/* Struct field encoding specification for nanopb */
8993
#define meshtastic_ServiceEnvelope_FIELDLIST(X, a) \
@@ -107,7 +111,8 @@ X(a, STATIC, SINGULAR, SFIXED32, latitude_i, 9) \
107111
X(a, STATIC, SINGULAR, SFIXED32, longitude_i, 10) \
108112
X(a, STATIC, SINGULAR, INT32, altitude, 11) \
109113
X(a, STATIC, SINGULAR, UINT32, position_precision, 12) \
110-
X(a, STATIC, SINGULAR, UINT32, num_online_local_nodes, 13)
114+
X(a, STATIC, SINGULAR, UINT32, num_online_local_nodes, 13) \
115+
X(a, STATIC, SINGULAR, BOOL, has_opted_report_location, 14)
111116
#define meshtastic_MapReport_CALLBACK NULL
112117
#define meshtastic_MapReport_DEFAULT NULL
113118

@@ -121,7 +126,7 @@ extern const pb_msgdesc_t meshtastic_MapReport_msg;
121126
/* Maximum encoded size of messages (where known) */
122127
/* meshtastic_ServiceEnvelope_size depends on runtime parameters */
123128
#define MESHTASTIC_MESHTASTIC_MQTT_PB_H_MAX_SIZE meshtastic_MapReport_size
124-
#define meshtastic_MapReport_size 108
129+
#define meshtastic_MapReport_size 110
125130

126131
#ifdef __cplusplus
127132
} /* extern "C" */

0 commit comments

Comments
 (0)