1#ifndef _SYSTEM_STATUS_CONTROLLER_H_
2#define _SYSTEM_STATUS_CONTROLLER_H_
89 current_state_ = new_state;
90 this->
emit(new_state);
Provides an easy way of calling a function based on the output of any ValueProducer.
Base class for a controller that can react to system status events.
void set_sk_ws_connection_state(const SKWSConnectionState &new_value)
LambdaConsumer< WiFiState > wifi_state_consumer_
LambdaConsumer< SKWSConnectionState > ws_connection_state_consumer_
void update_state(const SystemStatus new_state)
void set_wifi_state(const WiFiState &new_value)
ValueConsumer< SKWSConnectionState > & get_ws_connection_state_consumer()
ValueConsumer< WiFiState > & get_wifi_state_consumer()
A base class for piece of code (like a transform) that accepts data for input. ValueConsumers can acc...
A base class for any sensor or piece of code that outputs a value for consumption elsewhere.
void emit(const SystemStatus &new_value)