Files
IoTManager/include/Class/IoTVariable.h

27 lines
847 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "Utils/JsonUtils.h"
#include <WString.h>
class IoTVariable {
public:
IoTVariable();
~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();
protected:
String _key; //имя переменной, для идентификации при работе с несколькими переменными в одном модуле
String _id; //код переменной для идентификации событий, команд в сценариях и логах
};