From 6de612d55d8809bc1e8fcc04cb84b1163b318e5d Mon Sep 17 00:00:00 2001 From: Denis-Cosmin Nutiu Date: Sun, 1 Dec 2019 18:20:43 +0200 Subject: [PATCH] Add sensor state in Bme680 sensor telemetry --- NucuCar.Sensors/EnvironmentSensor/Bme680Sensor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NucuCar.Sensors/EnvironmentSensor/Bme680Sensor.cs b/NucuCar.Sensors/EnvironmentSensor/Bme680Sensor.cs index dc2ec3d..96404ac 100644 --- a/NucuCar.Sensors/EnvironmentSensor/Bme680Sensor.cs +++ b/NucuCar.Sensors/EnvironmentSensor/Bme680Sensor.cs @@ -126,6 +126,7 @@ namespace NucuCar.Sensors.EnvironmentSensor { returnValue = new Dictionary { + ["sensor_state"] = _sensorStateEnum, ["temperature"] = _lastMeasurement.GetValueOrDefault("temperature"), ["humidity"] = _lastMeasurement.GetValueOrDefault("humidity"), ["pressure"] = _lastMeasurement.GetValueOrDefault("pressure"),