Add network debug printer

This commit is contained in:
Shaheen Gandhi
2021-08-24 22:12:03 -07:00
parent bd13336256
commit 15055fa509
11 changed files with 946 additions and 794 deletions

View File

@@ -404,6 +404,13 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
}
#endif
#ifdef WLED_DEBUG_NET
JsonObject netDebugPrint = doc["netdebug"];
CJSON(netDebugPrintEnabled, netDebugPrint[F("enabled")]);
getStringFromJson(netDebugPrintHost, netDebugPrint[F("host")], 33);
CJSON(netDebugPrintPort, netDebugPrint[F("port")]);
#endif
DEBUG_PRINTLN(F("Starting usermod config."));
JsonObject usermods_settings = doc["um"];
if (!usermods_settings.isNull()) {