diff --git a/VanLiveConnect/Esp.ino b/VanLiveConnect/Esp.ino index d34f992..f238e4c 100644 --- a/VanLiveConnect/Esp.ino +++ b/VanLiveConnect/Esp.ino @@ -182,7 +182,7 @@ const char* EspSystemDataToJson(char* buf, const int n) if (at >= n) return ""; #ifdef PRINT_JSON_BUFFERS_ON_SERIAL - Serial.print(F("Parsed to JSON object:\n")); + Serial.printf_P(PSTR("%sESP system data as JSON object:\n"), TimeStamp()); PrintJsonText(buf); #endif // PRINT_JSON_BUFFERS_ON_SERIAL @@ -210,7 +210,7 @@ const char* EspRuntimeDataToJson(char* buf, const int n) if (at >= n) return ""; #ifdef PRINT_JSON_BUFFERS_ON_SERIAL - Serial.print(F("Parsed to JSON object:\n")); + Serial.printf_P(PSTR("%sESP runtime data as JSON object:\n"), TimeStamp()); PrintJsonText(buf); #endif // PRINT_JSON_BUFFERS_ON_SERIAL diff --git a/VanLiveConnect/Wifi.ino b/VanLiveConnect/Wifi.ino index d6dfe10..5c5263d 100644 --- a/VanLiveConnect/Wifi.ino +++ b/VanLiveConnect/Wifi.ino @@ -205,10 +205,8 @@ const char* WifiDataToJson(const IPAddress& client, char* buf, const int n) if (at >= n) return ""; #ifdef PRINT_JSON_BUFFERS_ON_SERIAL - - Serial.print(F("Wi-Fi data as JSON object:\n")); + Serial.printf_P(PSTR("%sWi-Fi data as JSON object:\n"), TimeStamp()); PrintJsonText(buf); - #endif // PRINT_JSON_BUFFERS_ON_SERIAL return buf;