mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Добавляем в параметр ip[] до 15 пинов
This commit is contained in:
@@ -127,6 +127,7 @@ class LineParsing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_pin != "") {
|
if (_pin != "") {
|
||||||
|
/*
|
||||||
if (_pin.indexOf(",") == -1) {
|
if (_pin.indexOf(",") == -1) {
|
||||||
if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) {
|
if (!isPinExist(_pin.toInt()) || !isDigitStr(_pin)) {
|
||||||
pinErrors++;
|
pinErrors++;
|
||||||
@@ -139,6 +140,17 @@ class LineParsing {
|
|||||||
pinErrors++;
|
pinErrors++;
|
||||||
_pin = "";
|
_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