mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Заставляем вирт кнопку отправлять целые значения
This commit is contained in:
@@ -25,7 +25,7 @@ class IoTItem {
|
|||||||
|
|
||||||
String getSubtype();
|
String getSubtype();
|
||||||
String getID();
|
String getID();
|
||||||
String getValue();
|
virtual String getValue();
|
||||||
|
|
||||||
void setInterval(unsigned long interval);
|
void setInterval(unsigned long interval);
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ class VButton : public IoTItem {
|
|||||||
regEvent((String)(int)value.valD, "VButton");
|
regEvent((String)(int)value.valD, "VButton");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getValue() {
|
||||||
|
return (String)(int)value.valD;
|
||||||
|
}
|
||||||
|
|
||||||
void doByInterval() { }
|
void doByInterval() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user