From 8df802a005c7f635fcd48c70efae9cda28d20b8b Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 3 Jan 2019 21:52:44 +0100 Subject: [PATCH] increase StaticJsonBuffer to MQTT_MAX_SIZE --- src/boiler.ino | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/boiler.ino b/src/boiler.ino index 1cf88f858..20e354a7f 100644 --- a/src/boiler.ino +++ b/src/boiler.ino @@ -410,13 +410,13 @@ void showInfo() { // a json object is created for the boiler and one for the thermostat // CRC check is done to see if there are changes in the values since the last send to avoid too much wifi traffic void publishValues(bool force) { - char s[20] = {0}; // for formatting strings - StaticJsonBuffer<512> jsonBuffer; - char data[MQTT_MAX_SIZE] = {0}; - JsonObject & rootBoiler = jsonBuffer.createObject(); - size_t rlen; - CRC32 crc; - uint32_t fchecksum; + char s[20] = {0}; // for formatting strings + StaticJsonBuffer jsonBuffer; + char data[MQTT_MAX_SIZE] = {0}; + JsonObject & rootBoiler = jsonBuffer.createObject(); + size_t rlen; + CRC32 crc; + uint32_t fchecksum; rootBoiler["wWSelTemp"] = _int_to_char(s, EMS_Boiler.wWSelTemp); rootBoiler["selFlowTemp"] = _float_to_char(s, EMS_Boiler.selFlowTemp);