mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем геттер для _global параметра в IoTItem
This commit is contained in:
@@ -27,6 +27,7 @@ class IoTItem {
|
||||
int getIntFromNet();
|
||||
virtual String getValue();
|
||||
long getInterval();
|
||||
bool isGlobal();
|
||||
|
||||
void setInterval(long interval);
|
||||
void setIntFromNet(int interval);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user