2019-12-29 12:08:18 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-08-01 15:07:13 +00:00
|
|
|
using NucuCar.Sensors.Abstractions;
|
2019-12-29 12:08:18 +00:00
|
|
|
|
2020-08-01 15:22:38 +00:00
|
|
|
namespace NucuCar.Sensors.Modules.Health
|
2019-12-29 12:08:18 +00:00
|
|
|
{
|
|
|
|
public class CpuTempWorker : SensorWorker
|
|
|
|
{
|
2020-05-01 08:29:59 +00:00
|
|
|
public CpuTempWorker(ILogger<CpuTempWorker> logger, Telemetry.Telemetry telemetry, ISensor<CpuTempSensor> sensor)
|
2019-12-29 12:08:18 +00:00
|
|
|
{
|
|
|
|
Logger = logger;
|
|
|
|
MeasurementInterval = 3000;
|
2020-05-01 08:29:59 +00:00
|
|
|
TelemetryPublisher = telemetry.Publisher;
|
2019-12-29 12:08:18 +00:00
|
|
|
Sensor = sensor.Object;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|