diff --git a/include/utils/SerialPrint.h b/include/utils/SerialPrint.h index 62efd173..ee3a2d82 100644 --- a/include/utils/SerialPrint.h +++ b/include/utils/SerialPrint.h @@ -1,5 +1,6 @@ #pragma once #include "Global.h" #include "utils/TimeUtils.h" +#include "classes/IoTItem.h" -void SerialPrint(String errorLevel, String module, String msg); \ No newline at end of file +void SerialPrint(String errorLevel, String module, String msg, String itemId = ""); \ No newline at end of file diff --git a/include/utils/StringUtils.h b/include/utils/StringUtils.h index da9468cb..9f2f9d75 100644 --- a/include/utils/StringUtils.h +++ b/include/utils/StringUtils.h @@ -32,7 +32,7 @@ size_t itemsCount2(String str, const String& separator); char* stringToChar(String& str); -size_t itemsCount(String& str, const char* delim); +//size_t itemsCount(String& str, const char* delim); boolean isDigitStr(const String& str); @@ -41,3 +41,5 @@ boolean isDigitDotCommaStr(const String& str); String prettyBytes(size_t size); String uint64ToString(uint64_t input, uint8_t base = 10); + +String cleanString(String str);