mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
Serial
This commit is contained in:
@@ -528,8 +528,14 @@ void serialBegin() {
|
|||||||
mySerial->begin(s_speed.toInt());
|
mySerial->begin(s_speed.toInt());
|
||||||
|
|
||||||
term = new Terminal(mySerial);
|
term = new Terminal(mySerial);
|
||||||
|
term->setEOL(LF);
|
||||||
|
term->enableColors(false);
|
||||||
|
term->enableControlCodes(false);
|
||||||
|
term->enableEcho(false);
|
||||||
term->setOnReadLine([](const char *str) {
|
term->setOnReadLine([](const char *str) {
|
||||||
order_loop += String(str) + ",";
|
String line = String(str);
|
||||||
|
pm.info("serial read: " + line);
|
||||||
|
order_loop += line + ",";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user