Browse Source

Corrected text

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 5 years ago
parent
commit
9ac246a38f
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      examples/AllFunctions/AllFunctions.ino

+ 9
- 9
examples/AllFunctions/AllFunctions.ino View File

@ -138,7 +138,7 @@ void loop() {
if (!modem.restart()) { if (!modem.restart()) {
// if (!modem.init()) { // if (!modem.init()) {
DBG("Failed to restart modem, delaying 10s and retrying"); DBG("Failed to restart modem, delaying 10s and retrying");
delay(10000);
delay(10000L);
// restart autobaud in case GSM just rebooted // restart autobaud in case GSM just rebooted
// TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX); // TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
return; return;
@ -238,7 +238,7 @@ void loop() {
// Read data // Read data
uint32_t timeout = millis(); uint32_t timeout = millis();
while (client.connected() && millis() - timeout < 10000L) {
while (client.connected() && millis() - timeout < 5000L) {
while (client.available()) { while (client.available()) {
SerialMon.write(client.read()); SerialMon.write(client.read());
timeout = millis(); timeout = millis();
@ -267,7 +267,7 @@ void loop() {
// Read data // Read data
uint32_t timeoutS = millis(); uint32_t timeoutS = millis();
while (secureClient.connected() && millis() - timeoutS < 10000L) {
while (secureClient.connected() && millis() - timeoutS < 5000L) {
while (secureClient.available()) { while (secureClient.available()) {
SerialMon.write(secureClient.read()); SerialMon.write(secureClient.read());
timeoutS = millis(); timeoutS = millis();
@ -347,8 +347,8 @@ void loop() {
DBG("Second:", sec); DBG("Second:", sec);
break; break;
} else { } else {
DBG("Couldn't get GSM location, retrying in 10s.");
delay(10000L);
DBG("Couldn't get GSM location, retrying in 15s.");
delay(15000L);
} }
} }
#endif #endif
@ -390,8 +390,8 @@ void loop() {
DBG("Second:", sec2); DBG("Second:", sec2);
break; break;
} else { } else {
DBG("Couldn't get GSM location, retrying in 10s.");
delay(10000L);
DBG("Couldn't get GPS/GNSS/GLONASS location, retrying in 15s.");
delay(15000L);
} }
} }
modem.disableGPS(); modem.disableGPS();
@ -420,8 +420,8 @@ void loop() {
DBG("Timezone:", timezone); DBG("Timezone:", timezone);
break; break;
} else { } else {
DBG("Couldn't get network time, retrying in 10s.");
delay(10000L);
DBG("Couldn't get network time, retrying in 15s.");
delay(15000L);
} }
} }
#endif #endif


Loading…
Cancel
Save