2019-11-09 13:34:49 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-04-17 15:11:07 +00:00
|
|
|
using NucuCar.Telemetry;
|
2019-11-09 13:34:49 +00:00
|
|
|
|
2019-12-29 11:29:27 +00:00
|
|
|
namespace NucuCar.Sensors.Environment
|
2019-11-09 13:34:49 +00:00
|
|
|
{
|
2019-12-17 19:54:38 +00:00
|
|
|
public class Bme680Worker : SensorWorker
|
2019-11-09 13:34:49 +00:00
|
|
|
{
|
2020-05-01 08:29:59 +00:00
|
|
|
public Bme680Worker(ILogger<Bme680Worker> logger, Telemetry.Telemetry telemetry, ISensor<Bme680Sensor> sensor)
|
2019-11-09 13:34:49 +00:00
|
|
|
{
|
2019-12-17 19:54:38 +00:00
|
|
|
Logger = logger;
|
|
|
|
MeasurementInterval = 3000;
|
2020-05-01 08:29:59 +00:00
|
|
|
TelemetryPublisher = telemetry.Publisher;
|
2019-12-17 19:54:38 +00:00
|
|
|
Sensor = sensor.Object;
|
2019-11-09 13:34:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|