tinance2-doorbot/include/settings.h
2024-01-31 11:50:05 +01:00

33 lines
486 B
C++

#ifndef SETTINGS_H
#define SETTINGS_H
#include <Preferences.h>
#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