fix standalone compile error, use string stream

This commit is contained in:
proddy
2020-11-29 10:30:14 +01:00
parent e0aed557f8
commit 7a67486ce3

View File

@@ -101,7 +101,7 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request) {
ok ? PSTR("OK") : PSTR("Invalid"));
EMSESP::logger().debug(debug.c_str());
if (json.size()) {
char buffer2[EMSESP_MAX_JSON_SIZE_DYN];
std::string buffer2;
serializeJson(doc, buffer2);
EMSESP::logger().debug("json (max 255 chars): %s", buffer2);
}