From 905b1cafd8af4f6559433081e138d4655a5d1206 Mon Sep 17 00:00:00 2001 From: Erik Tromp Date: Wed, 24 May 2023 11:35:06 +0200 Subject: [PATCH] Updated verbosity --- VanLiveConnect/Esp.ino | 4 ++-- VanLiveConnect/Wifi.ino | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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;