mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
1
This commit is contained in:
@@ -360,7 +360,7 @@
|
||||
"header": "Исполнительные устройства"
|
||||
},
|
||||
{
|
||||
"name": "28. Кнопка (подключенная физически)",
|
||||
"name": "28. Кнопка подключенная к пину",
|
||||
"type": "Writing",
|
||||
"subtype": "ButtonIn",
|
||||
"id": "btn",
|
||||
@@ -376,7 +376,7 @@
|
||||
"num": 28
|
||||
},
|
||||
{
|
||||
"name": "29. Кнопка управляющая пином (Реле с кнопкой)",
|
||||
"name": "29. Кнопка управляющая пином (Реле)",
|
||||
"type": "Writing",
|
||||
"subtype": "ButtonOut",
|
||||
"id": "btn",
|
||||
|
||||
@@ -23,11 +23,12 @@ void generateOrder(const String& id, const String& value) {
|
||||
void handleOrder() {
|
||||
if (orderBuf.length()) {
|
||||
String order = selectToMarker(orderBuf, ",");
|
||||
Serial.println("order: " + order);
|
||||
SerialPrint("i", F("ORDER"), order);
|
||||
|
||||
//здесь нужно перебрать все методы execute всех векторов и выполнить те id которых совпали с id события
|
||||
IoTItem* item = findIoTItem(selectToMarker(order, " "));
|
||||
if (item) {
|
||||
SerialPrint("i", F("ORDER"), "order matched " + order);
|
||||
String valStr = selectToMarkerLast(order, " ");
|
||||
item->setValue(valStr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user