#ifndef SETTINGS_H #define SETTINGS_H #include #ifdef WIFI #ifdef TINANCE2_BACKEND #include "tinance2.h" #include "secrets.h" #endif #endif class Settings { private: bool disableDoor; String doorMode; public: Settings(); void loadFromEEPROM(); void saveToEEPROM(); void setDisableDoor(bool value); bool getDoorDisabled(); void setDoorMode(String value); String getDoorMode(); }; extern Settings settings; #endif // SETTINGS_H