mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Добавляем в параметр ip[] до 15 пинов
This commit is contained in:
@@ -127,6 +127,7 @@ class LineParsing {
|
||||
}
|
||||
|
||||
if (_pin != "") {
|
||||
/*
|
||||
if (_pin.indexOf(",") == -1) {
|
||||
if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) {
|
||||
pinErrors++;
|
||||
@@ -139,6 +140,17 @@ class LineParsing {
|
||||
pinErrors++;
|
||||
_pin = "";
|
||||
}
|
||||
}*/
|
||||
|
||||
String tmpstr;
|
||||
for (int i=0; i<15; i++) {
|
||||
tmpstr = selectFromMarkerToMarker(_pin, ",", i);
|
||||
if(tmpstr == "not found") break;
|
||||
if(!isDigitStr(tmpstr) || !isPinExist(tmpstr.toInt())){
|
||||
pinErrors++;
|
||||
_pin = "";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user