diff --git a/include/classes/IoTItem.h b/include/classes/IoTItem.h index ff899a20..772a3052 100644 --- a/include/classes/IoTItem.h +++ b/include/classes/IoTItem.h @@ -87,6 +87,7 @@ class IoTItem { int _map3 = 0; int _map4 = 0; int _round = 1; // 1, 10, 100, 1000, 10000 + int _numDigits = 1; // количество целых значений, не значимые позиции заменяются нулем в строковом формате bool _global = false; // характеристика айтема, что ему нужно слать и принимать события из внешнего мира }; diff --git a/include/utils/StringUtils.h b/include/utils/StringUtils.h index 816d8353..ea403cfb 100644 --- a/include/utils/StringUtils.h +++ b/include/utils/StringUtils.h @@ -45,3 +45,7 @@ String uint64ToString(uint64_t input, uint8_t base = 10); void cleanString(String& str); unsigned char ChartoHex(char ch); + +std::vector splitStr(const String& str, const String& delimiter); + +bool strInVector(const String& str, const std::vector& vec);