Config via MQTT JSON payload

This commit is contained in:
Gunnar Skjold
2026-03-19 13:25:36 +01:00
parent 13aff62aff
commit 548012e90b
7 changed files with 519 additions and 163 deletions

View File

@@ -10,7 +10,7 @@
#include "Arduino.h"
#define EEPROM_SIZE 1024*3
#define EEPROM_CHECK_SUM 104 // Used to check if config is stored. Change if structure changes
#define EEPROM_EXPECTED_VERSION 104 // Used to check if config is stored. Change if structure changes
#define EEPROM_CLEARED_INDICATOR 0xFC
#define EEPROM_CONFIG_ADDRESS 0
@@ -283,11 +283,12 @@ struct ZmartChargeConfig {
class AmsConfiguration {
public:
bool load();
bool save();
bool hasConfig();
int getConfigVersion();
bool save();
bool getSystemConfig(SystemConfig&);
bool setSystemConfig(SystemConfig&);
bool isSystemConfigChanged();