| 12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * ConfigManager.h
- *
- * Created on: 21.06.2026
- * Author: FSmilari
- */
-
- #ifndef CONFIGMANAGER_H_
- #define CONFIGMANAGER_H_
-
- #include <Arduino.h>
- #include <EEPROM.h>
-
- struct Config {
- char ssid[32];
- char pass[64];
- bool wifiValid;
- };
-
- class ConfigManager {
-
- public:
- ConfigManager();
- virtual ~ConfigManager();
-
- bool loadConfig();
- bool saveConfig(const Config &config);
- void resetConfig();
- Config& getConfig();
-
- private:
- Config _config;
- };
-
-
- #endif /* CONFIGMANAGER_H_ */
|