OpenIris/ESP/include/StateManager.h
2022-03-28 00:03:29 +02:00

24 lines
545 B
C++

#pragma once
namespace OpenIris{
enum State {
Starting = 1,
ConnectingToWifi = 2,
ConnectingToWifiError = 3,
ConnectingToWifiSuccess = 4,
ServerError = 5,
CameraError = 6,
MDNSSuccess = 7,
MDNSError = 8,
};
class StateManager{
public:
StateManager() : current_state(Starting) {}
void setState(State state);
State getCurrentState();
private:
State current_state;
};
}