33 lines
486 B
C++
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
|