response show combined telegram

This commit is contained in:
MichaelDvP
2023-07-17 09:53:40 +02:00
parent 7a5f13bcad
commit c47414dad5
2 changed files with 24 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ bool System::command_send(const char * value, const int8_t id) {
}
bool System::command_response(const char * value, const int8_t id, JsonObject & output) {
StaticJsonDocument<EMSESP_JSON_SIZE_SMALL> doc;
DynamicJsonDocument doc(EMSESP_JSON_SIZE_LARGE);
if (DeserializationError::Ok == deserializeJson(doc, Mqtt::get_response())) {
for (JsonPair p : doc.as<JsonObject>()) {
output[p.key()] = p.value();