4#include "roo_transceivers/binding/binding.h"
12 const roo_transceivers::SensorBinding*
binding)
16 roo_transceivers::Measurement
m = bound_sensor_.read();
20 return Reading{.
value = roo_quantity::TemperatureDegCelcius(
m.value()),
25 roo_transceivers::BoundSensor bound_sensor_;
Thermometer backed by a bound sensor from roo_transceivers.
Reading readTemperature() const override
Returns the latest available temperature reading.
BoundThermometer(roo_transceivers::Universe &universe, const roo_transceivers::SensorBinding *binding)
An abstraction of a multi-state settable switch.
An abstraction of a thermometer, i.e., a device that reports temperature.
Captures a temperature measured at a specific time.
roo_quantity::Temperature value
Measured temperature value.