diff --git a/meshtastic/telemetry.options b/meshtastic/telemetry.options index 79b1f12..a429c3e 100644 --- a/meshtastic/telemetry.options +++ b/meshtastic/telemetry.options @@ -3,6 +3,7 @@ *EnvironmentMetrics.iaq int_size:16 *EnvironmentMetrics.wind_direction int_size:16 +*EnvironmentMetrics.soil_moisture int_size:8 *LocalStats.num_online_nodes int_size:16 *LocalStats.num_total_nodes int_size:16 diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 0a7db6a..4b41edd 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -143,7 +143,16 @@ message EnvironmentMetrics { * Rainfall in the last 24 hours in mm */ optional float rainfall_24h = 20; - + + /* + * Soil moisture measured (% 1-100) + */ + optional uint32 soil_moisture = 21; + + /* + * Soil temperature measured (*C) + */ + optional float soil_temperature = 22; } /* @@ -565,7 +574,7 @@ enum TelemetrySensorType { /* * RAKWireless RAK12035 Soil Moisture Sensor Module */ - DPS310 = 37; + RAK12035 = 37; } /*