mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fix standalone compile error, use string stream
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user