Turned off some XBee debugging
This commit is contained in:
@@ -978,6 +978,7 @@ finish:
|
|||||||
}
|
}
|
||||||
data = "";
|
data = "";
|
||||||
}
|
}
|
||||||
|
//DBG('<', index, '>');
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -669,7 +669,7 @@ protected:
|
|||||||
while (stream.available() < 4) {}; // wait for any response
|
while (stream.available() < 4) {}; // wait for any response
|
||||||
strIP = stream.readStringUntil('\r'); // read result
|
strIP = stream.readStringUntil('\r'); // read result
|
||||||
strIP.trim();
|
strIP.trim();
|
||||||
DBG("<<< ", strIP);
|
//DBG("<<< ", strIP);
|
||||||
if (!strIP.endsWith(GF("ERROR"))) gotIP = true;
|
if (!strIP.endsWith(GF("ERROR"))) gotIP = true;
|
||||||
delay(100); // short wait before trying again
|
delay(100); // short wait before trying again
|
||||||
}
|
}
|
||||||
@@ -783,14 +783,14 @@ finish:
|
|||||||
if (data.length()) {
|
if (data.length()) {
|
||||||
DBG("### Unhandled:", data, "\r\n");
|
DBG("### Unhandled:", data, "\r\n");
|
||||||
} else {
|
} else {
|
||||||
DBG("### NO RESPONSE!\r\n");
|
DBG("### NO RESPONSE FROM MODEM!\r\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data.trim();
|
data.trim();
|
||||||
data.replace(GSM_NL GSM_NL, GSM_NL);
|
data.replace(GSM_NL GSM_NL, GSM_NL);
|
||||||
data.replace(GSM_NL, "\r\n ");
|
data.replace(GSM_NL, "\r\n ");
|
||||||
if (data.length()) {
|
if (data.length()) {
|
||||||
// DBG("<<< ", data);
|
//DBG("<<< ", data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//DBG('<', index, '>');
|
//DBG('<', index, '>');
|
||||||
@@ -820,7 +820,7 @@ finish:
|
|||||||
// Default guard time is 1s, but the init fxn decreases it to 250 ms
|
// Default guard time is 1s, but the init fxn decreases it to 250 ms
|
||||||
delay(guardTime);
|
delay(guardTime);
|
||||||
streamWrite(GF("+++")); // enter command mode
|
streamWrite(GF("+++")); // enter command mode
|
||||||
DBG("+++");
|
//DBG("+++");
|
||||||
success = (1 == waitResponse(guardTime*2));
|
success = (1 == waitResponse(guardTime*2));
|
||||||
triesMade ++;
|
triesMade ++;
|
||||||
}
|
}
|
||||||
@@ -846,7 +846,7 @@ finish:
|
|||||||
while (!stream.available() && millis() - startMillis < timeout) {};
|
while (!stream.available() && millis() - startMillis < timeout) {};
|
||||||
String res = stream.readStringUntil('\r'); // lines end with carriage returns
|
String res = stream.readStringUntil('\r'); // lines end with carriage returns
|
||||||
res.trim();
|
res.trim();
|
||||||
DBG("<<< ", res);
|
//DBG("<<< ", res);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user