Add sensor state in Bme680 sensor telemetry

This commit is contained in:
Denis-Cosmin Nutiu 2019-12-01 18:20:43 +02:00
parent f5823f8c57
commit 6de612d55d

View file

@ -126,6 +126,7 @@ namespace NucuCar.Sensors.EnvironmentSensor
{
returnValue = new Dictionary<string, object>
{
["sensor_state"] = _sensorStateEnum,
["temperature"] = _lastMeasurement.GetValueOrDefault("temperature"),
["humidity"] = _lastMeasurement.GetValueOrDefault("humidity"),
["pressure"] = _lastMeasurement.GetValueOrDefault("pressure"),