web interface constructor

This commit is contained in:
Dmitry Borisenko
2020-08-21 02:34:38 +03:00
parent e0d0e30e93
commit 0485feeabe
23 changed files with 760 additions and 28 deletions

View File

@@ -463,14 +463,17 @@ void fileExecute(const String &filename) {
stringExecute(cmdStr);
}
void stringExecute(String &cmdStr) {
void stringExecute(String &cmdStr) {
cmdStr.replace("x;","");
cmdStr.replace(";"," ");
cmdStr += "\r\n";
cmdStr.replace("\r\n", "\n");
cmdStr.replace("\r", "\n");
int count = 0;
while (cmdStr.length()) {
String buf = selectToMarker(cmdStr, "\n");
sCmd.readStr(buf);
count++;
if (count > 1)sCmd.readStr(buf);
cmdStr = deleteBeforeDelimiter(cmdStr, "\n");
}
}