Improvements for ENTSO-E

This commit is contained in:
Gunnar Skjold
2022-01-23 17:52:10 +01:00
parent 9dbf9137c7
commit 6aa02d54c8
6 changed files with 24 additions and 6 deletions

View File

@@ -451,6 +451,9 @@ bool AmsConfiguration::getEntsoeConfig(EntsoeConfig& config) {
EEPROM.begin(EEPROM_SIZE);
EEPROM.get(CONFIG_ENTSOE_START, config);
EEPROM.end();
if(strlen(config.token) != 0 && strlen(config.token) != 36) {
clearEntsoe(config);
}
return true;
} else {
return false;