increase json buffer to allow HA MQTT for EMS-ESP

This commit is contained in:
proddy
2020-11-20 15:02:58 +01:00
parent 32cce931e5
commit c0113921d6

View File

@@ -503,7 +503,7 @@ void Mqtt::on_connect() {
// homeassistant/sensor/ems-esp/status/config // homeassistant/sensor/ems-esp/status/config
// all the values from the heartbeat payload will be added as attributes to the entity state // all the values from the heartbeat payload will be added as attributes to the entity state
void Mqtt::ha_status() { void Mqtt::ha_status() {
StaticJsonDocument<EMSESP_MAX_JSON_SIZE_SMALL> doc; StaticJsonDocument<EMSESP_MAX_JSON_SIZE_HA_CONFIG> doc;
doc["name"] = F("EMS-ESP status"); doc["name"] = F("EMS-ESP status");
doc["uniq_id"] = F("status"); doc["uniq_id"] = F("status");