mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Merge branch 'ver4dev' of https://github.com/biveraxe/IoTManager into ver4dev
This commit is contained in:
@@ -47,7 +47,7 @@ void IoTItem::regEvent(String value, String consoleInfo = "") {
|
||||
jsonWriteStr(paramsHeapJson, _id, value);
|
||||
publishStatusMqtt(_id, value);
|
||||
publishStatusWs(_id, value);
|
||||
SerialPrint("I", "Sensor " + consoleInfo, "'" + _id + "' data: " + value + "'");
|
||||
SerialPrint("i", "Sensor " + consoleInfo, "'" + _id + "' data: " + value + "'");
|
||||
}
|
||||
|
||||
void IoTItem::regEvent(float value, String consoleInfo = "") {
|
||||
@@ -75,13 +75,13 @@ void IoTItem::regEvent(float value, String consoleInfo = "") {
|
||||
|
||||
void IoTItem::doByInterval() {}
|
||||
|
||||
IoTValue IoTItem::execute(String command, std::vector<IoTValue> ¶m) { return {};}
|
||||
IoTValue IoTItem::execute(String command, std::vector<IoTValue>& param) { return {}; }
|
||||
|
||||
IoTItem* findIoTItem(String name) { // поиск элемента модуля в существующей конфигурации
|
||||
for (unsigned int i = 0; i < IoTItems.size(); i++) {
|
||||
if(IoTItems[i]->getID() == name) return IoTItems[i];
|
||||
if (IoTItems[i]->getID() == name) return IoTItems[i];
|
||||
}
|
||||
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user