uart working version

This commit is contained in:
Dmitry Borisenko
2020-12-10 19:12:15 +03:00
parent d17112b3ff
commit f487a691fb
26 changed files with 119 additions and 118 deletions

View File

@@ -22,8 +22,10 @@ ButtonOut::~ButtonOut() {}
void ButtonOut::execute(String state) {
if (_type == "UART") {
if (jsonReadBool(configSetupJson, "uart")) {
if (myUART != nullptr) {
myUART->print(_key + " " + state);
if (myUART) {
String msg = _key + " " + state;
myUART->print(msg);
SerialPrint("I", "<=UART", msg);
}
}
}