21 lines
449 B
C++
21 lines
449 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace djm::device {
|
|
|
|
struct TemperatureReading {
|
|
/* All temperatures are read as degree Celsius */
|
|
std::optional<float> cpu;
|
|
std::optional<float> mainboard;
|
|
std::optional<float> mics;
|
|
std::optional<float> opticalCamera;
|
|
|
|
/* Meant for debugging only: Format this reading as a human readable text */
|
|
std::string fmtDebug() const;
|
|
};
|
|
|
|
} // namespace djm::device
|