mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
.
This commit is contained in:
@@ -338,7 +338,7 @@
|
|||||||
"name": "26. PZEM 004t Мощность",
|
"name": "26. PZEM 004t Мощность",
|
||||||
"type": "Reading",
|
"type": "Reading",
|
||||||
"subtype": "Pzem004w",
|
"subtype": "Pzem004w",
|
||||||
"id": "A",
|
"id": "W",
|
||||||
"widget": "anydataWt",
|
"widget": "anydataWt",
|
||||||
"page": "Сенсоры",
|
"page": "Сенсоры",
|
||||||
"descr": "Мощность",
|
"descr": "Мощность",
|
||||||
@@ -436,8 +436,8 @@
|
|||||||
"descr": "",
|
"descr": "",
|
||||||
"widget": "nil",
|
"widget": "nil",
|
||||||
"id": "u",
|
"id": "u",
|
||||||
"tx": 15,
|
"tx": 12,
|
||||||
"rx": 16,
|
"rx": 13,
|
||||||
"speed": 9600,
|
"speed": 9600,
|
||||||
"num": 34
|
"num": 34
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ class SoftUART : public IoTItem {
|
|||||||
void parse(String& incStr) {
|
void parse(String& incStr) {
|
||||||
SerialPrint("I", "=>UART", incStr);
|
SerialPrint("I", "=>UART", incStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void uartPrint(String msg) {
|
||||||
|
myUART->print(msg);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void* getAPI_SoftUART(String subtype, String param) {
|
void* getAPI_SoftUART(String subtype, String param) {
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
"descr": "",
|
"descr": "",
|
||||||
"widget": "nil",
|
"widget": "nil",
|
||||||
"id": "u",
|
"id": "u",
|
||||||
"tx": 15,
|
"tx": 12,
|
||||||
"rx": 16,
|
"rx": 13,
|
||||||
"speed": 9600
|
"speed": 9600
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user