NucuCar/NucuCar.Sensors/Modules/Environment/Bme680Worker.cs

16 lines
477 B
C#
Raw Normal View History

2019-11-09 13:34:49 +00:00
using Microsoft.Extensions.Logging;
2020-08-01 15:07:13 +00:00
using NucuCar.Sensors.Abstractions;
2019-11-09 13:34:49 +00:00
namespace NucuCar.Sensors.Modules.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, Telemetry.Telemetry telemetry, ISensor<Bme680Sensor> sensor)
2019-11-09 13:34:49 +00:00
{
Logger = logger;
MeasurementInterval = 3000;
TelemetryPublisher = telemetry.Publisher;
Sensor = sensor.Object;
2019-11-09 13:34:49 +00:00
}
}
}