|
Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
|
Fault classification and telemetry labeling helpers. More...
Functions | |
| FaultPolicySnapshot | evaluate (const ControlSnapshot &controlSnapshot, const FaultMonitorSnapshot &faultSnapshot) |
| Evaluates alarms and fault response from control and fan-monitor state. | |
| const char * | alarmCodeLabel (AlarmCode alarmCode) |
| Converts an alarm code to a telemetry-safe label. | |
| const char * | severityLabel (FaultSeverity severity) |
| Converts a severity value to a telemetry-safe label. | |
| const char * | responseLabel (FaultResponse response) |
| Converts a fault response to a telemetry-safe label. | |
Fault classification and telemetry labeling helpers.
The namespace consumes already-computed control and fan-monitor snapshots. It does not read sensors or drive hardware; it only classifies the current state and returns stable labels for diagnostics.
| const char * FaultPolicy::alarmCodeLabel | ( | AlarmCode | alarmCode | ) |
Converts an alarm code to a telemetry-safe label.
| alarmCode | Alarm code to label. |
| FaultPolicySnapshot FaultPolicy::evaluate | ( | const ControlSnapshot & | controlSnapshot, |
| const FaultMonitorSnapshot & | faultSnapshot | ||
| ) |
Evaluates alarms and fault response from control and fan-monitor state.
| controlSnapshot | Latest control-engine result. |
| faultSnapshot | Latest fan fault-monitor result. |
| const char * FaultPolicy::responseLabel | ( | FaultResponse | response | ) |
Converts a fault response to a telemetry-safe label.
| response | Response to label. |
| const char * FaultPolicy::severityLabel | ( | FaultSeverity | severity | ) |
Converts a severity value to a telemetry-safe label.
| severity | Severity to label. |