Добавляем геттер для _global параметра в IoTItem

This commit is contained in:
2022-11-07 17:26:24 +03:00
parent 4534214f48
commit 2925b13bd1
2 changed files with 3 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ class IoTItem {
int getIntFromNet();
virtual String getValue();
long getInterval();
bool isGlobal();
void setInterval(long interval);
void setIntFromNet(int interval);

View File

@@ -59,6 +59,8 @@ String IoTItem::getValue() {
long IoTItem::getInterval() { return _interval; }
bool IoTItem::isGlobal() { return _global;}
//определяем тип прилетевшей величины
void IoTItem::setValue(const String& valStr, bool genEvent) {
value.isDecimal = isDigitDotCommaStr(valStr);