From e809c92c64a421b95df6ca8677785fff96be7e87 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Tue, 27 Sep 2022 01:07:50 +0200 Subject: [PATCH] . --- data_svelte/items.json | 6 +++--- src/modules/sensors/SoftUart/SoftUart.cpp | 4 ++++ src/modules/sensors/SoftUart/modinfo.json | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/data_svelte/items.json b/data_svelte/items.json index ed0f650a..fd04a12f 100644 --- a/data_svelte/items.json +++ b/data_svelte/items.json @@ -338,7 +338,7 @@ "name": "26. PZEM 004t Мощность", "type": "Reading", "subtype": "Pzem004w", - "id": "A", + "id": "W", "widget": "anydataWt", "page": "Сенсоры", "descr": "Мощность", @@ -436,8 +436,8 @@ "descr": "", "widget": "nil", "id": "u", - "tx": 15, - "rx": 16, + "tx": 12, + "rx": 13, "speed": 9600, "num": 34 }, diff --git a/src/modules/sensors/SoftUart/SoftUart.cpp b/src/modules/sensors/SoftUart/SoftUart.cpp index 372a2a2c..02d68dcc 100644 --- a/src/modules/sensors/SoftUart/SoftUart.cpp +++ b/src/modules/sensors/SoftUart/SoftUart.cpp @@ -54,6 +54,10 @@ class SoftUART : public IoTItem { void parse(String& incStr) { SerialPrint("I", "=>UART", incStr); } + + void uartPrint(String msg) { + myUART->print(msg); + } }; void* getAPI_SoftUART(String subtype, String param) { diff --git a/src/modules/sensors/SoftUart/modinfo.json b/src/modules/sensors/SoftUart/modinfo.json index 692574a7..61de77fb 100644 --- a/src/modules/sensors/SoftUart/modinfo.json +++ b/src/modules/sensors/SoftUart/modinfo.json @@ -9,8 +9,8 @@ "descr": "", "widget": "nil", "id": "u", - "tx": 15, - "rx": 16, + "tx": 12, + "rx": 13, "speed": 9600 } ],