NucuCar/NucuCar.BME680Sensor/Bme680Measurement.cs
2019-11-09 16:54:06 +02:00

23 lines
No EOL
646 B
C#

using Iot.Units;
namespace NucuCar.BME680Sensor
{
public struct Bme680Measurement
{
public Temperature Temperature { get; set; }
public double Pressure { get; set; }
public double Humidity { get; set; }
public Bme680Measurement(Temperature temperature, double pressure, double humidity) : this()
{
SetMeasurement(temperature, pressure, humidity);
}
public void SetMeasurement(Temperature temperature, double pressure, double humidity)
{
Temperature = temperature;
Pressure = pressure;
Humidity = humidity;
}
}
}