From 483a138f9da1463dd5cff27fc5260f6b2a0e5c63 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 20 Sep 2024 15:59:45 +0200 Subject: [PATCH] json type --- src/console.cpp | 2 +- src/emsdevice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console.cpp b/src/console.cpp index 677fd1986..ca700c819 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -553,7 +553,7 @@ static void setup_commands(std::shared_ptr & commands) { if (return_code == CommandRet::OK) { if (json.size()) { if (json["api_data"].is()) { - String data = json["api_data"]; + std::string data = json["api_data"]; shell.println(data.c_str()); return; } diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 863b455fd..213f52ac3 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -1684,7 +1684,7 @@ bool EMSdevice::generate_values(JsonObject output, const int8_t tag_filter, cons } // do not overwrite - if (json[name].is()) { + if (json[name].is()) { #if defined(EMSESP_DEBUG) EMSESP::logger().debug("warning: double json key: %s", name); #endif