Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
Loading...
Searching...
No Matches
Classes | Variables
sensor_manager.h File Reference

OneWire temperature sensor discovery, assignment, and sampling. More...

#include <Arduino.h>
#include <DallasTemperature.h>
#include <OneWire.h>
Include dependency graph for sensor_manager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TrackedSensorConfig
 Configuration for one named temperature sensor. More...
 
struct  TrackedSensorSnapshot
 Latest sample and identity data for one tracked sensor. More...
 
struct  DiscoveredSensorSnapshot
 Diagnostic data for one discovered OneWire sensor. More...
 
struct  SensorManagerConfig
 OneWire bus and temperature sampling configuration. More...
 
struct  SensorSnapshot
 Complete OneWire bus and sensor state snapshot. More...
 
class  SensorManager
 Discovers and samples DS18B20-compatible sensors on a OneWire bus. More...
 

Variables

constexpr size_t kMaxTrackedSensors = 1
 Number of named sensors used by control logic.
 
constexpr size_t kMaxDiscoveredSensors = 4
 Maximum discovered OneWire devices retained for diagnostics.
 

Detailed Description

OneWire temperature sensor discovery, assignment, and sampling.

The manager handles fixed sensor roles on a shared OneWire bus. It tracks whether expected ROM codes were found, keeps a small discovery list for diagnostics, and performs temperature conversion as a non-blocking state machine.