mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Serial
This commit is contained in:
@@ -528,8 +528,14 @@ void serialBegin() {
|
||||
mySerial->begin(s_speed.toInt());
|
||||
|
||||
term = new Terminal(mySerial);
|
||||
term->setEOL(LF);
|
||||
term->enableColors(false);
|
||||
term->enableControlCodes(false);
|
||||
term->enableEcho(false);
|
||||
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