From d9061086e358dd4765c5b9bab95d3152600a43b3 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Fri, 7 Mar 2025 19:52:48 +0800 Subject: [PATCH 1/2] Add RAK12035VB Soil Moisture Sensor As per @Justin-Mann , the RAK12035 is a Soil Moisture Sensor made by RAKWireless. Up to three can be connected using the wisblock architecture. --- meshtastic/telemetry.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 29fdcf6..0a7db6a 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -561,6 +561,11 @@ enum TelemetrySensorType { * Infineon DPS310 High accuracy pressure and temperature */ DPS310 = 36; + + /* + * RAKWireless RAK12035 Soil Moisture Sensor Module + */ + DPS310 = 37; } /* From 06572741de59e16be9d205aa8ea0423cb00d17e2 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Fri, 7 Mar 2025 19:58:18 +0800 Subject: [PATCH 2/2] Update telemetry.proto --- meshtastic/telemetry.options | 1 + meshtastic/telemetry.proto | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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; } /*