не рабочая версия - ввод даты в процессе

This commit is contained in:
Dmitry Borisenko
2022-09-10 02:58:42 +02:00
parent fff7c976a9
commit 8340ae2a0f
11 changed files with 87 additions and 21 deletions

View File

@@ -25,10 +25,16 @@ void handleOrder() {
String order = selectToMarker(orderBuf, ",");
SerialPrint("i", F("ORDER"), order);
String id = selectToMarker(order, " ");
//это модификатор для даты графика
// if (id.endsWith("-date")) {
//}
//здесь нужно перебрать все методы execute всех векторов и выполнить те id которых совпали с id события
IoTItem* item = findIoTItem(selectToMarker(order, " "));
IoTItem* item = findIoTItem(id);
if (item) {
SerialPrint("i", F("ORDER"), "order matched " + order);
SerialPrint("i", F("ORDER"), "order found " + order);
String valStr = selectToMarkerLast(order, " ");
item->setValue(valStr);
}