diff --git a/include/classes/IoTItem.h b/include/classes/IoTItem.h index b1899614..faa02106 100644 --- a/include/classes/IoTItem.h +++ b/include/classes/IoTItem.h @@ -9,6 +9,8 @@ class IoTItem { void loop(); virtual void doByInterval(); + virtual void execute(String command, String param); + void regEvent(String value, String consoleInfo); void regEvent(float value, String consoleInfo); diff --git a/src/classes/IoTItem.cpp b/src/classes/IoTItem.cpp index bb30f3a4..5ac9fd72 100644 --- a/src/classes/IoTItem.cpp +++ b/src/classes/IoTItem.cpp @@ -72,4 +72,6 @@ void IoTItem::regEvent(float value, String consoleInfo = "") { void IoTItem::doByInterval() {} +void IoTItem::execute(String command, String param) {} + IoTItem* myIoTItem; \ No newline at end of file