mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 09:49:54 +03:00
increase StaticJsonBuffer to MQTT_MAX_SIZE
This commit is contained in:
@@ -410,13 +410,13 @@ void showInfo() {
|
|||||||
// a json object is created for the boiler and one for the thermostat
|
// 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
|
// 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) {
|
void publishValues(bool force) {
|
||||||
char s[20] = {0}; // for formatting strings
|
char s[20] = {0}; // for formatting strings
|
||||||
StaticJsonBuffer<512> jsonBuffer;
|
StaticJsonBuffer<MQTT_MAX_SIZE> jsonBuffer;
|
||||||
char data[MQTT_MAX_SIZE] = {0};
|
char data[MQTT_MAX_SIZE] = {0};
|
||||||
JsonObject & rootBoiler = jsonBuffer.createObject();
|
JsonObject & rootBoiler = jsonBuffer.createObject();
|
||||||
size_t rlen;
|
size_t rlen;
|
||||||
CRC32 crc;
|
CRC32 crc;
|
||||||
uint32_t fchecksum;
|
uint32_t fchecksum;
|
||||||
|
|
||||||
rootBoiler["wWSelTemp"] = _int_to_char(s, EMS_Boiler.wWSelTemp);
|
rootBoiler["wWSelTemp"] = _int_to_char(s, EMS_Boiler.wWSelTemp);
|
||||||
rootBoiler["selFlowTemp"] = _float_to_char(s, EMS_Boiler.selFlowTemp);
|
rootBoiler["selFlowTemp"] = _float_to_char(s, EMS_Boiler.selFlowTemp);
|
||||||
|
|||||||
Reference in New Issue
Block a user