SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
system_status_controller.cpp
Go to the documentation of this file.
2
3namespace sensesp {
4
7 // FIXME: If pointers to member functions would be held in an array,
8 // this would be a simple array dereferencing
9 switch (new_value) {
12 break;
15 break;
19 break;
22 break;
23 }
24}
25
28 switch (new_value) {
30 if (current_state_ != SystemStatus::kWifiDisconnected &&
31 current_state_ != SystemStatus::kWifiNoAP &&
32 current_state_ != SystemStatus::kWifiManagerActivated) {
33 // Wifi disconnection states override the higher level protocol state
35 }
36 break;
39 break;
42 break;
45 break;
46 }
47}
48
49} // namespace sensesp
Construct a new transform based on a single function.
void update_state(const SystemStatus new_state)
virtual void set_input(WiFiState new_value, uint8_t input_channel=0) override
WSConnectionState
Definition ws_client.h:20