mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Завершаем перенос ButtonOut в новую систему классов, требуется доработка взаимодействия с виджитами
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Utils/JsonUtils.h"
|
||||
#include <WString.h>
|
||||
|
||||
class IoTVariable {
|
||||
@@ -10,9 +11,11 @@ class IoTVariable {
|
||||
virtual String execute(String command);
|
||||
virtual void selfExec();
|
||||
virtual void loop();
|
||||
virtual String getValue(String key);
|
||||
|
||||
void init(String key, String id);
|
||||
void regEvent(String value, String consoleInfo);
|
||||
String loadValue(String id);
|
||||
|
||||
String getKey();
|
||||
String getID();
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#ifdef EnableButtonOut
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
class ButtonOut;
|
||||
|
||||
typedef std::vector<ButtonOut> MyButtonOutVector;
|
||||
|
||||
class ButtonOut {
|
||||
public:
|
||||
ButtonOut(String pin, boolean inv, String key, String type);
|
||||
|
||||
~ButtonOut();
|
||||
|
||||
void execute(String state);
|
||||
|
||||
private:
|
||||
String _pin;
|
||||
boolean _inv;
|
||||
String _key;
|
||||
String _type;
|
||||
};
|
||||
|
||||
extern MyButtonOutVector* myButtonOut;
|
||||
|
||||
extern void buttonOut();
|
||||
extern void buttonOutExecute();
|
||||
#endif
|
||||
Reference in New Issue
Block a user