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