NucuCar/NucuCar.Sensors/Environment/Bme680Worker.cs

16 lines
474 B
C#
Raw Normal View History

2019-11-09 13:34:49 +00:00
using Microsoft.Extensions.Logging;
2019-11-14 14:45:32 +00:00
using NucuCar.Sensors.Telemetry;
2019-11-09 13:34:49 +00:00
namespace NucuCar.Sensors.Environment
2019-11-09 13:34:49 +00:00
{
public class Bme680Worker : SensorWorker
2019-11-09 13:34:49 +00:00
{
public Bme680Worker(ILogger<Bme680Worker> logger, SensorTelemetry sensorTelemetry, ISensor<Bme680Sensor> sensor)
2019-11-09 13:34:49 +00:00
{
Logger = logger;
MeasurementInterval = 3000;
TelemetryPublisher = sensorTelemetry.Publisher;
Sensor = sensor.Object;
2019-11-09 13:34:49 +00:00
}
}
}