2019-12-29 12:08:18 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-04-17 15:11:07 +00:00
|
|
|
using NucuCar.Telemetry;
|
2019-12-29 12:08:18 +00:00
|
|
|
|
|
|
|
namespace NucuCar.Sensors.Health
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|