NucuCar/NucuCar.Sensors/Modules/BME680/Bme680Worker.cs

19 lines
637 B
C#
Raw Normal View History

2019-11-09 13:34:49 +00:00
using Microsoft.Extensions.Logging;
2021-04-24 18:44:54 +00:00
using Microsoft.Extensions.Options;
2020-08-01 15:07:13 +00:00
using NucuCar.Sensors.Abstractions;
using NucuCar.Telemetry.Abstractions;
2019-11-09 13:34:49 +00:00
2021-08-02 18:13:59 +00:00
namespace NucuCar.Sensors.Modules.BME680
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, ITelemetryPublisher telemetryPublisherProxy, ISensor<Bme680Sensor> sensor,
2021-04-24 18:44:54 +00:00
IOptions<Bme680Config> options)
2019-11-09 13:34:49 +00:00
{
Logger = logger;
2021-04-24 18:44:54 +00:00
MeasurementInterval = options.Value.MeasurementInterval;
TelemetryPublisher = telemetryPublisherProxy;
Sensor = sensor.Object;
2019-11-09 13:34:49 +00:00
}
}
}