mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
dont clear json doc on each HC - https://github.com/proddy/EMS-ESP/issues/162
This commit is contained in:
@@ -665,6 +665,7 @@ void publishValues(bool force) {
|
||||
last_boilerActive = ((EMS_Boiler.tapwaterActive << 1) + EMS_Boiler.heatingActive); // remember last state
|
||||
}
|
||||
|
||||
doc.clear();
|
||||
// handle the thermostat values
|
||||
if (ems_getThermostatEnabled()) {
|
||||
for (uint8_t hc_v = 1; hc_v <= EMS_THERMOSTAT_MAXHC; hc_v++) {
|
||||
@@ -673,7 +674,6 @@ void publishValues(bool force) {
|
||||
// only send if we have an active Heating Circuit with real data
|
||||
if (thermostat->active) {
|
||||
// build new json object
|
||||
doc.clear();
|
||||
JsonObject rootThermostat = doc.to<JsonObject>();
|
||||
|
||||
// hc{1-4}
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define APP_VERSION "1.9.2b6"
|
||||
#define APP_VERSION "1.9.2b7"
|
||||
|
||||
Reference in New Issue
Block a user