From 5dffd22584035ada16f2d90ce435e8296d5449fd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 16:41:17 +0200 Subject: [PATCH] Update protobufs and classes (#11531) Co-authored-by: caveman99 <25002+caveman99@users.noreply.github.com> --- protobufs | 2 +- src/mesh/generated/meshtastic/admin.pb.cpp | 3 ++ src/mesh/generated/meshtastic/admin.pb.h | 33 ++++++++++++-- src/mesh/generated/meshtastic/deviceonly.pb.h | 2 +- .../generated/meshtastic/telemetry.pb.cpp | 3 ++ src/mesh/generated/meshtastic/telemetry.pb.h | 45 ++++++++++++++++--- 6 files changed, 75 insertions(+), 13 deletions(-) diff --git a/protobufs b/protobufs index 84bfb0fdb..c9cb9ef6e 160000 --- a/protobufs +++ b/protobufs @@ -1 +1 @@ -Subproject commit 84bfb0fdb3b853ea18abc4535497fa41a1b09546 +Subproject commit c9cb9ef6ee0dd579fbe9424e232484392637e11e diff --git a/src/mesh/generated/meshtastic/admin.pb.cpp b/src/mesh/generated/meshtastic/admin.pb.cpp index d029daf31..42d7fa9a2 100644 --- a/src/mesh/generated/meshtastic/admin.pb.cpp +++ b/src/mesh/generated/meshtastic/admin.pb.cpp @@ -51,6 +51,9 @@ PB_BIND(meshtastic_SHTXX_config, meshtastic_SHTXX_config, AUTO) PB_BIND(meshtastic_DS248X_config, meshtastic_DS248X_config, AUTO) +PB_BIND(meshtastic_AS3935_config, meshtastic_AS3935_config, AUTO) + + diff --git a/src/mesh/generated/meshtastic/admin.pb.h b/src/mesh/generated/meshtastic/admin.pb.h index 9d73b8508..ccf6f54c8 100644 --- a/src/mesh/generated/meshtastic/admin.pb.h +++ b/src/mesh/generated/meshtastic/admin.pb.h @@ -368,6 +368,13 @@ typedef struct _meshtastic_DS248X_config { uint32_t main_temperature_channel; } meshtastic_DS248X_config; +typedef struct _meshtastic_AS3935_config { + /* Antenna tuning capacitance in pF, 0 to 120 in steps of 8. The antenna tank must + resonate within 3.5% of 500kHz; the correct trim is specific to the sensor board. */ + bool has_set_tuning_cap_pf; + uint32_t set_tuning_cap_pf; +} meshtastic_AS3935_config; + typedef struct _meshtastic_SensorConfig { /* SCD4X CO2 Sensor configuration */ bool has_scd4x_config; @@ -387,6 +394,9 @@ typedef struct _meshtastic_SensorConfig { /* SEN6X PM/RHT/VOC/NOx/CO2/HCHO Sensor configuration */ bool has_sen6x_config; meshtastic_SEN6X_config sen6x_config; + /* AS3935 lightning sensor configuration */ + bool has_as3935_config; + meshtastic_AS3935_config as3935_config; } meshtastic_SensorConfig; typedef PB_BYTES_ARRAY_T(8) meshtastic_AdminMessage_session_passkey_t; @@ -588,6 +598,7 @@ extern "C" { + /* Initializer values for message structs */ #define meshtastic_AdminMessage_init_default {0, {0}, {0, {0}}} #define meshtastic_AdminMessage_InputEvent_init_default {0, 0, 0, 0} @@ -597,13 +608,14 @@ extern "C" { #define meshtastic_NodeRemoteHardwarePinsResponse_init_default {0, {meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default, meshtastic_NodeRemoteHardwarePin_init_default}} #define meshtastic_SharedContact_init_default {0, false, meshtastic_User_init_default, 0, 0} #define meshtastic_KeyVerificationAdmin_init_default {_meshtastic_KeyVerificationAdmin_MessageType_MIN, 0, 0, false, 0} -#define meshtastic_SensorConfig_init_default {false, meshtastic_SCD4X_config_init_default, false, meshtastic_SEN5X_config_init_default, false, meshtastic_SCD30_config_init_default, false, meshtastic_SHTXX_config_init_default, false, meshtastic_DS248X_config_init_default, false, meshtastic_SEN6X_config_init_default} +#define meshtastic_SensorConfig_init_default {false, meshtastic_SCD4X_config_init_default, false, meshtastic_SEN5X_config_init_default, false, meshtastic_SCD30_config_init_default, false, meshtastic_SHTXX_config_init_default, false, meshtastic_DS248X_config_init_default, false, meshtastic_SEN6X_config_init_default, false, meshtastic_AS3935_config_init_default} #define meshtastic_SCD4X_config_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SEN5X_config_init_default {false, 0, false, 0, false, 0} #define meshtastic_SEN6X_config_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SCD30_config_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SHTXX_config_init_default {false, 0} #define meshtastic_DS248X_config_init_default {false, 0} +#define meshtastic_AS3935_config_init_default {false, 0} #define meshtastic_AdminMessage_init_zero {0, {0}, {0, {0}}} #define meshtastic_AdminMessage_InputEvent_init_zero {0, 0, 0, 0} #define meshtastic_AdminMessage_OTAEvent_init_zero {_meshtastic_OTAMode_MIN, {0, {0}}} @@ -612,13 +624,14 @@ extern "C" { #define meshtastic_NodeRemoteHardwarePinsResponse_init_zero {0, {meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero, meshtastic_NodeRemoteHardwarePin_init_zero}} #define meshtastic_SharedContact_init_zero {0, false, meshtastic_User_init_zero, 0, 0} #define meshtastic_KeyVerificationAdmin_init_zero {_meshtastic_KeyVerificationAdmin_MessageType_MIN, 0, 0, false, 0} -#define meshtastic_SensorConfig_init_zero {false, meshtastic_SCD4X_config_init_zero, false, meshtastic_SEN5X_config_init_zero, false, meshtastic_SCD30_config_init_zero, false, meshtastic_SHTXX_config_init_zero, false, meshtastic_DS248X_config_init_zero, false, meshtastic_SEN6X_config_init_zero} +#define meshtastic_SensorConfig_init_zero {false, meshtastic_SCD4X_config_init_zero, false, meshtastic_SEN5X_config_init_zero, false, meshtastic_SCD30_config_init_zero, false, meshtastic_SHTXX_config_init_zero, false, meshtastic_DS248X_config_init_zero, false, meshtastic_SEN6X_config_init_zero, false, meshtastic_AS3935_config_init_zero} #define meshtastic_SCD4X_config_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SEN5X_config_init_zero {false, 0, false, 0, false, 0} #define meshtastic_SEN6X_config_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SCD30_config_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_SHTXX_config_init_zero {false, 0} #define meshtastic_DS248X_config_init_zero {false, 0} +#define meshtastic_AS3935_config_init_zero {false, 0} /* Field tags (for use in manual encoding/decoding) */ #define meshtastic_AdminMessage_InputEvent_event_code_tag 1 @@ -673,12 +686,14 @@ extern "C" { #define meshtastic_SCD30_config_soft_reset_tag 6 #define meshtastic_SHTXX_config_set_accuracy_tag 1 #define meshtastic_DS248X_config_main_temperature_channel_tag 1 +#define meshtastic_AS3935_config_set_tuning_cap_pf_tag 1 #define meshtastic_SensorConfig_scd4x_config_tag 1 #define meshtastic_SensorConfig_sen5x_config_tag 2 #define meshtastic_SensorConfig_scd30_config_tag 3 #define meshtastic_SensorConfig_shtxx_config_tag 4 #define meshtastic_SensorConfig_ds248x_config_tag 5 #define meshtastic_SensorConfig_sen6x_config_tag 6 +#define meshtastic_SensorConfig_as3935_config_tag 7 #define meshtastic_AdminMessage_get_channel_request_tag 1 #define meshtastic_AdminMessage_get_channel_response_tag 2 #define meshtastic_AdminMessage_get_owner_request_tag 3 @@ -886,7 +901,8 @@ X(a, STATIC, OPTIONAL, MESSAGE, sen5x_config, 2) \ X(a, STATIC, OPTIONAL, MESSAGE, scd30_config, 3) \ X(a, STATIC, OPTIONAL, MESSAGE, shtxx_config, 4) \ X(a, STATIC, OPTIONAL, MESSAGE, ds248x_config, 5) \ -X(a, STATIC, OPTIONAL, MESSAGE, sen6x_config, 6) +X(a, STATIC, OPTIONAL, MESSAGE, sen6x_config, 6) \ +X(a, STATIC, OPTIONAL, MESSAGE, as3935_config, 7) #define meshtastic_SensorConfig_CALLBACK NULL #define meshtastic_SensorConfig_DEFAULT NULL #define meshtastic_SensorConfig_scd4x_config_MSGTYPE meshtastic_SCD4X_config @@ -895,6 +911,7 @@ X(a, STATIC, OPTIONAL, MESSAGE, sen6x_config, 6) #define meshtastic_SensorConfig_shtxx_config_MSGTYPE meshtastic_SHTXX_config #define meshtastic_SensorConfig_ds248x_config_MSGTYPE meshtastic_DS248X_config #define meshtastic_SensorConfig_sen6x_config_MSGTYPE meshtastic_SEN6X_config +#define meshtastic_SensorConfig_as3935_config_MSGTYPE meshtastic_AS3935_config #define meshtastic_SCD4X_config_FIELDLIST(X, a) \ X(a, STATIC, OPTIONAL, BOOL, set_asc, 1) \ @@ -946,6 +963,11 @@ X(a, STATIC, OPTIONAL, UINT32, main_temperature_channel, 1) #define meshtastic_DS248X_config_CALLBACK NULL #define meshtastic_DS248X_config_DEFAULT NULL +#define meshtastic_AS3935_config_FIELDLIST(X, a) \ +X(a, STATIC, OPTIONAL, UINT32, set_tuning_cap_pf, 1) +#define meshtastic_AS3935_config_CALLBACK NULL +#define meshtastic_AS3935_config_DEFAULT NULL + extern const pb_msgdesc_t meshtastic_AdminMessage_msg; extern const pb_msgdesc_t meshtastic_AdminMessage_InputEvent_msg; extern const pb_msgdesc_t meshtastic_AdminMessage_OTAEvent_msg; @@ -961,6 +983,7 @@ extern const pb_msgdesc_t meshtastic_SEN6X_config_msg; extern const pb_msgdesc_t meshtastic_SCD30_config_msg; extern const pb_msgdesc_t meshtastic_SHTXX_config_msg; extern const pb_msgdesc_t meshtastic_DS248X_config_msg; +extern const pb_msgdesc_t meshtastic_AS3935_config_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define meshtastic_AdminMessage_fields &meshtastic_AdminMessage_msg @@ -978,9 +1001,11 @@ extern const pb_msgdesc_t meshtastic_DS248X_config_msg; #define meshtastic_SCD30_config_fields &meshtastic_SCD30_config_msg #define meshtastic_SHTXX_config_fields &meshtastic_SHTXX_config_msg #define meshtastic_DS248X_config_fields &meshtastic_DS248X_config_msg +#define meshtastic_AS3935_config_fields &meshtastic_AS3935_config_msg /* Maximum encoded size of messages (where known) */ #define MESHTASTIC_MESHTASTIC_ADMIN_PB_H_MAX_SIZE meshtastic_AdminMessage_size +#define meshtastic_AS3935_config_size 6 #define meshtastic_AdminMessage_InputEvent_size 14 #define meshtastic_AdminMessage_OTAEvent_size 36 #define meshtastic_AdminMessage_size 511 @@ -994,7 +1019,7 @@ extern const pb_msgdesc_t meshtastic_DS248X_config_msg; #define meshtastic_SEN5X_config_size 9 #define meshtastic_SEN6X_config_size 31 #define meshtastic_SHTXX_config_size 6 -#define meshtastic_SensorConfig_size 120 +#define meshtastic_SensorConfig_size 128 #define meshtastic_SharedContact_size 127 #ifdef __cplusplus diff --git a/src/mesh/generated/meshtastic/deviceonly.pb.h b/src/mesh/generated/meshtastic/deviceonly.pb.h index a4757b5ca..51e43526e 100644 --- a/src/mesh/generated/meshtastic/deviceonly.pb.h +++ b/src/mesh/generated/meshtastic/deviceonly.pb.h @@ -458,7 +458,7 @@ extern const pb_msgdesc_t meshtastic_BackupPreferences_msg; #define meshtastic_BackupPreferences_size 2740 #define meshtastic_ChannelFile_size 718 #define meshtastic_DeviceState_size 1944 -#define meshtastic_NodeEnvironmentEntry_size 218 +#define meshtastic_NodeEnvironmentEntry_size 231 #define meshtastic_NodeInfoLite_size 112 #define meshtastic_NodePositionEntry_size 42 #define meshtastic_NodeStatusEntry_size 89 diff --git a/src/mesh/generated/meshtastic/telemetry.pb.cpp b/src/mesh/generated/meshtastic/telemetry.pb.cpp index 64cc0422f..aa095b1a2 100644 --- a/src/mesh/generated/meshtastic/telemetry.pb.cpp +++ b/src/mesh/generated/meshtastic/telemetry.pb.cpp @@ -36,6 +36,9 @@ PB_BIND(meshtastic_Telemetry, meshtastic_Telemetry, 2) PB_BIND(meshtastic_Nau7802Config, meshtastic_Nau7802Config, AUTO) +PB_BIND(meshtastic_AS3935Config, meshtastic_AS3935Config, AUTO) + + PB_BIND(meshtastic_SEN5XState, meshtastic_SEN5XState, AUTO) diff --git a/src/mesh/generated/meshtastic/telemetry.pb.h b/src/mesh/generated/meshtastic/telemetry.pb.h index 8c0168843..bfac3b038 100644 --- a/src/mesh/generated/meshtastic/telemetry.pb.h +++ b/src/mesh/generated/meshtastic/telemetry.pb.h @@ -125,7 +125,9 @@ typedef enum _meshtastic_TelemetrySensorType { /* HM330X PM SENSOR */ meshtastic_TelemetrySensorType_HM330X = 55, /* Sensirion SEN6X PM/RHT/VOC/NOx/CO2/HCHO sensor family (SEN62, SEN63C, SEN65, SEN66, SEN68, SEN69C) */ - meshtastic_TelemetrySensorType_SEN6X = 56 + meshtastic_TelemetrySensorType_SEN6X = 56, + /* AS3935 Franklin lightning sensor */ + meshtastic_TelemetrySensorType_AS3935 = 57 } meshtastic_TelemetrySensorType; /* Struct definitions */ @@ -266,6 +268,12 @@ typedef struct _meshtastic_EnvironmentMetrics { /* Multi-channel One-Wire Temperature Channel 7 (*C) */ bool has_one_wire_temperature_ch7; float one_wire_temperature_ch7; + /* Lightning strikes detected in the last hour */ + bool has_lightning_strike_count_1h; + uint32_t lightning_strike_count_1h; + /* Estimated distance to the leading edge of the storm, in km */ + bool has_lightning_distance_km; + float lightning_distance_km; } meshtastic_EnvironmentMetrics; /* Power Metrics (voltage / current / etc) */ @@ -531,6 +539,13 @@ typedef struct _meshtastic_Nau7802Config { float calibrationFactor; } meshtastic_Nau7802Config; +/* AS3935 lightning sensor configuration, for saving to flash */ +typedef struct _meshtastic_AS3935Config { + /* Antenna tuning capacitance in pF, 0 to 120 in steps of 8. The chip does not retain + this across power loss, so it is stored here and re-applied on every boot. */ + uint32_t tuning_cap_pf; +} meshtastic_AS3935Config; + /* SEN5X State, for saving to flash (to be merged with SEN6XState) */ typedef struct _meshtastic_SEN5XState { /* Last cleaning time for SEN5X */ @@ -576,8 +591,9 @@ extern "C" { /* Helper constants for enums */ #define _meshtastic_TelemetrySensorType_MIN meshtastic_TelemetrySensorType_SENSOR_UNSET -#define _meshtastic_TelemetrySensorType_MAX meshtastic_TelemetrySensorType_SEN6X -#define _meshtastic_TelemetrySensorType_ARRAYSIZE ((meshtastic_TelemetrySensorType)(meshtastic_TelemetrySensorType_SEN6X+1)) +#define _meshtastic_TelemetrySensorType_MAX meshtastic_TelemetrySensorType_AS3935 +#define _meshtastic_TelemetrySensorType_ARRAYSIZE ((meshtastic_TelemetrySensorType)(meshtastic_TelemetrySensorType_AS3935+1)) + @@ -594,7 +610,7 @@ extern "C" { /* Initializer values for message structs */ #define meshtastic_DeviceMetrics_init_default {false, 0, false, 0, false, 0, false, 0, false, 0} -#define meshtastic_EnvironmentMetrics_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} +#define meshtastic_EnvironmentMetrics_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_PowerMetrics_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_AirQualityMetrics_init_default {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_LocalStats_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} @@ -603,10 +619,11 @@ extern "C" { #define meshtastic_HostMetrics_init_default {0, 0, 0, false, 0, false, 0, 0, 0, 0, false, ""} #define meshtastic_Telemetry_init_default {0, 0, {meshtastic_DeviceMetrics_init_default}} #define meshtastic_Nau7802Config_init_default {0, 0} +#define meshtastic_AS3935Config_init_default {0} #define meshtastic_SEN5XState_init_default {0, 0, 0, false, 0, false, 0, false, 0} #define meshtastic_SEN6XState_init_default {0, 0, 0, false, 0, false, 0, false, 0} #define meshtastic_DeviceMetrics_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0} -#define meshtastic_EnvironmentMetrics_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} +#define meshtastic_EnvironmentMetrics_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_PowerMetrics_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_AirQualityMetrics_init_zero {false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0, false, 0} #define meshtastic_LocalStats_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} @@ -615,6 +632,7 @@ extern "C" { #define meshtastic_HostMetrics_init_zero {0, 0, 0, false, 0, false, 0, 0, 0, 0, false, ""} #define meshtastic_Telemetry_init_zero {0, 0, {meshtastic_DeviceMetrics_init_zero}} #define meshtastic_Nau7802Config_init_zero {0, 0} +#define meshtastic_AS3935Config_init_zero {0} #define meshtastic_SEN5XState_init_zero {0, 0, 0, false, 0, false, 0, false, 0} #define meshtastic_SEN6XState_init_zero {0, 0, 0, false, 0, false, 0, false, 0} @@ -662,6 +680,8 @@ extern "C" { #define meshtastic_EnvironmentMetrics_one_wire_temperature_ch5_tag 37 #define meshtastic_EnvironmentMetrics_one_wire_temperature_ch6_tag 38 #define meshtastic_EnvironmentMetrics_one_wire_temperature_ch7_tag 39 +#define meshtastic_EnvironmentMetrics_lightning_strike_count_1h_tag 40 +#define meshtastic_EnvironmentMetrics_lightning_distance_km_tag 41 #define meshtastic_PowerMetrics_ch1_voltage_tag 1 #define meshtastic_PowerMetrics_ch1_current_tag 2 #define meshtastic_PowerMetrics_ch2_voltage_tag 3 @@ -749,6 +769,7 @@ extern "C" { #define meshtastic_Telemetry_traffic_management_stats_tag 9 #define meshtastic_Nau7802Config_zeroOffset_tag 1 #define meshtastic_Nau7802Config_calibrationFactor_tag 2 +#define meshtastic_AS3935Config_tuning_cap_pf_tag 1 #define meshtastic_SEN5XState_last_cleaning_time_tag 1 #define meshtastic_SEN5XState_last_cleaning_valid_tag 2 #define meshtastic_SEN5XState_one_shot_mode_tag 3 @@ -810,7 +831,9 @@ X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch3, 35) \ X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch4, 36) \ X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch5, 37) \ X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch6, 38) \ -X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch7, 39) +X(a, STATIC, OPTIONAL, FLOAT, one_wire_temperature_ch7, 39) \ +X(a, STATIC, OPTIONAL, UINT32, lightning_strike_count_1h, 40) \ +X(a, STATIC, OPTIONAL, FLOAT, lightning_distance_km, 41) #define meshtastic_EnvironmentMetrics_CALLBACK NULL #define meshtastic_EnvironmentMetrics_DEFAULT NULL @@ -941,6 +964,11 @@ X(a, STATIC, SINGULAR, FLOAT, calibrationFactor, 2) #define meshtastic_Nau7802Config_CALLBACK NULL #define meshtastic_Nau7802Config_DEFAULT NULL +#define meshtastic_AS3935Config_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, UINT32, tuning_cap_pf, 1) +#define meshtastic_AS3935Config_CALLBACK NULL +#define meshtastic_AS3935Config_DEFAULT NULL + #define meshtastic_SEN5XState_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, UINT32, last_cleaning_time, 1) \ X(a, STATIC, SINGULAR, BOOL, last_cleaning_valid, 2) \ @@ -971,6 +999,7 @@ extern const pb_msgdesc_t meshtastic_HealthMetrics_msg; extern const pb_msgdesc_t meshtastic_HostMetrics_msg; extern const pb_msgdesc_t meshtastic_Telemetry_msg; extern const pb_msgdesc_t meshtastic_Nau7802Config_msg; +extern const pb_msgdesc_t meshtastic_AS3935Config_msg; extern const pb_msgdesc_t meshtastic_SEN5XState_msg; extern const pb_msgdesc_t meshtastic_SEN6XState_msg; @@ -985,14 +1014,16 @@ extern const pb_msgdesc_t meshtastic_SEN6XState_msg; #define meshtastic_HostMetrics_fields &meshtastic_HostMetrics_msg #define meshtastic_Telemetry_fields &meshtastic_Telemetry_msg #define meshtastic_Nau7802Config_fields &meshtastic_Nau7802Config_msg +#define meshtastic_AS3935Config_fields &meshtastic_AS3935Config_msg #define meshtastic_SEN5XState_fields &meshtastic_SEN5XState_msg #define meshtastic_SEN6XState_fields &meshtastic_SEN6XState_msg /* Maximum encoded size of messages (where known) */ #define MESHTASTIC_MESHTASTIC_TELEMETRY_PB_H_MAX_SIZE meshtastic_Telemetry_size +#define meshtastic_AS3935Config_size 6 #define meshtastic_AirQualityMetrics_size 157 #define meshtastic_DeviceMetrics_size 27 -#define meshtastic_EnvironmentMetrics_size 209 +#define meshtastic_EnvironmentMetrics_size 222 #define meshtastic_HealthMetrics_size 11 #define meshtastic_HostMetrics_size 264 #define meshtastic_LocalStats_size 87