Configuration is flashable

This commit is contained in:
Ollo 2020-10-13 21:22:21 +02:00
parent 8599430458
commit 7991a37d4d
2 changed files with 16 additions and 2 deletions

View File

@ -19,18 +19,31 @@
}, },
"settings": { "settings": {
"deepsleep" : 60000, "deepsleep" : 60000,
"nightsleep" : 60000,
"pumpdeepsleep": 1000, "pumpdeepsleep": 1000,
"watermaxlevel": 50, "watermaxlevel": 50,
"watermin" : 5, "watermin" : 5,
"plants" : 3, "plants" : 3,
"moist0" : 2000,
"moist1" : 2000, "moist1" : 2000,
"moist2" : 2000, "moist2" : 2000,
"moist3" : 2000, "moist3" : 2000,
"moist4" : 2000,
"moist5" : 2000,
"moist6" : 2000,
"plant0MaxPumpTime": 1000,
"plant1MaxPumpTime": 1000, "plant1MaxPumpTime": 1000,
"plant2MaxPumpTime": 1000, "plant2MaxPumpTime": 1000,
"plant3MaxPumpTime": 1000, "plant3MaxPumpTime": 1000,
"plant4MaxPumpTime": 1000,
"plant5MaxPumpTime": 1000,
"plant6MaxPumpTime": 1000,
"plant0MinPumpIdle": 10000,
"plant1MinPumpIdle": 10000, "plant1MinPumpIdle": 10000,
"plant2MinPumpIdle": 10000, "plant2MinPumpIdle": 10000,
"plant3MinPumpIdle": 10000 "plant3MinPumpIdle": 10000,
"plant4MinPumpIdle": 10000,
"plant5MinPumpIdle": 10000,
"plant6MinPumpIdle": 10000
} }
} }

View File

@ -405,6 +405,7 @@ void setup() {
if (HomieInternals::MAX_CONFIG_SETTING_SIZE < MAX_CONFIG_SETTING_ITEMS) { if (HomieInternals::MAX_CONFIG_SETTING_SIZE < MAX_CONFIG_SETTING_ITEMS) {
Serial << "HOMIE | Settings: " << HomieInternals::MAX_CONFIG_SETTING_SIZE << "/" << MAX_CONFIG_SETTING_ITEMS << endl; Serial << "HOMIE | Settings: " << HomieInternals::MAX_CONFIG_SETTING_SIZE << "/" << MAX_CONFIG_SETTING_ITEMS << endl;
Serial << " | Update Limits.hpp : MAX_CONFIG_SETTING_SIZE to " << MAX_CONFIG_SETTING_ITEMS << endl; Serial << " | Update Limits.hpp : MAX_CONFIG_SETTING_SIZE to " << MAX_CONFIG_SETTING_ITEMS << endl;
Serial << " | Update Limits.hpp : MAX_JSON_CONFIG_FILE_SIZE to 3000" << endl;
} }
Homie_setFirmware("PlantControl", FIRMWARE_VERSION); Homie_setFirmware("PlantControl", FIRMWARE_VERSION);