1 #ifndef LIBR2C2_SENSOR_H_
2 #define LIBR2C2_SENSOR_H_
4 #include <sigc++/signal.h>
5 #include <msp/time/timedelta.h>
11 class Sensor: public sigc::trackable
22 sigc::signal<void, State> signal_state_changed;
28 Msp::Time::TimeDelta state_confirm_timeout;
34 unsigned get_address() const { return address; }
35 State get_state() const { return state; }
37 void tick(const Msp::Time::TimeDelta &);
40 void event(unsigned, bool);