feat: add include/reading.hpp

This commit is contained in:
2026-09-25 11:56:51 +08:00
parent 31937026e4
commit 0ecce75006

8
include/reading.hpp Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include <cstdint>
#include <string>
struct Reading { std::string channel; double celsius; std::int64_t timestamp_ms; };
enum class ChannelState { Healthy, Stale, OutOfRange };
struct ChannelAssessment { Reading reading; ChannelState state; };
ChannelAssessment assess_channel(const Reading& reading, std::int64_t now_ms);