mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Убираем нумерацию папок модулей
This commit is contained in:
29
src/modules/virtual/Variable/Variable.cpp
Normal file
29
src/modules/virtual/Variable/Variable.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "Global.h"
|
||||
#include "classes/IoTItem.h"
|
||||
|
||||
|
||||
class Variable : public IoTItem {
|
||||
private:
|
||||
|
||||
public:
|
||||
Variable(String parameters): IoTItem(parameters) {
|
||||
|
||||
}
|
||||
|
||||
// особенность данного модуля - просто хранение значения для сценария, нет событий
|
||||
// void setValue(IoTValue Value) {
|
||||
// value = Value;
|
||||
// }
|
||||
|
||||
void doByInterval() {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
void* getAPI_Variable(String subtype, String param) {
|
||||
if (subtype == F("Variable")) {
|
||||
return new Variable(param);
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user