From 0ecce7500697e619a0410ea3a8be3e3d51860212 Mon Sep 17 00:00:00 2001 From: xingchen <1098756313@qq.com> Date: Fri, 25 Sep 2026 11:56:51 +0800 Subject: [PATCH] feat: add include/reading.hpp --- include/reading.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 include/reading.hpp diff --git a/include/reading.hpp b/include/reading.hpp new file mode 100644 index 0000000..857cffa --- /dev/null +++ b/include/reading.hpp @@ -0,0 +1,8 @@ +#pragma once +#include +#include + +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);