From 5f6dc3a1a83adda33701cd9cd0c5c2d69633dd94 Mon Sep 17 00:00:00 2001 From: Jorge Castillo Date: Wed, 8 May 2024 22:20:18 -0400 Subject: [PATCH 1/2] add veml7700 ambient light readings to the env merics --- meshtastic/telemetry.proto | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index d6b23885..4661cd62 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -82,6 +82,23 @@ message EnvironmentMetrics { * RCWL9620 Doppler Radar Distance Sensor, used for water level detection. Float value in mm. */ float distance = 8; + + /* + * VEML7700 high accuracy ambient light(Lux) digital 16-bit resolution sensor. + */ + float lux = 9; + + /* + * VEML7700 raw white light data digital 16-bit resolution sensor. + */ + uint32 white = 10; + + /* + * VEML7700 raw ALS data digital 16-bit resolution sensor. + */ + uint32 ALS = 11; + + } /* @@ -309,4 +326,8 @@ enum TelemetrySensorType { * Sensirion High accuracy temperature and humidity */ SHT4X = 17; -} + /* + * VEML7700 high accuracy ambient light(Lux) digital 16-bit resolution sensor. + */ + VEML7700 = 18; +} \ No newline at end of file From 71f3d68db56fb335c78211443b6cff3d661adb03 Mon Sep 17 00:00:00 2001 From: Jorge Castillo Date: Tue, 14 May 2024 16:43:15 -0400 Subject: [PATCH 2/2] Update telemetry.proto to include VEML7700 high accuracy white light(irradiance) sensor --- meshtastic/telemetry.proto | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 4661cd62..734683a5 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -89,16 +89,9 @@ message EnvironmentMetrics { float lux = 9; /* - * VEML7700 raw white light data digital 16-bit resolution sensor. + * VEML7700 high accuracy white light(irradiance) not calibrated digital 16-bit resolution sensor. */ - uint32 white = 10; - - /* - * VEML7700 raw ALS data digital 16-bit resolution sensor. - */ - uint32 ALS = 11; - - + float white_lux = 10; } /*