NucuCar/NucuCar.Sensors/EnvironmentSensor/Bme680Worker.cs

21 lines
629 B
C#
Raw Normal View History

2019-11-09 13:34:49 +00:00
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using NucuCar.Domain.Telemetry;
2019-11-14 14:45:32 +00:00
using NucuCar.Sensors.Telemetry;
using NucuCarSensorsProto;
2019-11-09 13:34:49 +00:00
namespace NucuCar.Sensors.EnvironmentSensor
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
}
}
}