Wemos D1 Mini Frimware zur Steuerung einer RGBW-LED-Lampe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * ConfigManager.h
  3. *
  4. * Created on: 21.06.2026
  5. * Author: FSmilari
  6. */
  7. #ifndef CONFIGMANAGER_H_
  8. #define CONFIGMANAGER_H_
  9. #include <Arduino.h>
  10. #include <EEPROM.h>
  11. struct Config {
  12. char ssid[32];
  13. char pass[64];
  14. bool wifiValid;
  15. };
  16. class ConfigManager {
  17. public:
  18. ConfigManager();
  19. virtual ~ConfigManager();
  20. bool loadConfig();
  21. bool saveConfig(const Config &config);
  22. void resetConfig();
  23. Config& getConfig();
  24. private:
  25. Config _config;
  26. };
  27. #endif /* CONFIGMANAGER_H_ */