Added missing wait resopnse

This commit is contained in:
SRGDamia1
2017-04-13 14:37:29 -04:00
parent 88fe00e98e
commit 5794d7b910

View File

@@ -93,13 +93,15 @@ public:
TINY_GSM_YIELD(); TINY_GSM_YIELD();
at->commandMode(); at->commandMode();
at->sendAT(GF("TM0")); // Set socket timeout to 0; at->sendAT(GF("TM0")); // Set socket timeout to 0;
at->waitResponse();
at->writeChanges(); at->writeChanges();
at->exitCommand(); at->exitCommand();
at->modemSend("", 1, mux); at->modemSend("", 1, mux);
at->waitResponse(); at->waitResponse();
delay(200); delay(100);
at->commandMode(); at->commandMode();
at->sendAT(GF("TM64")); // Set socket timeout back to 10seconds; at->sendAT(GF("TM64")); // Set socket timeout back to 10seconds;
at->waitResponse();
at->writeChanges(); at->writeChanges();
at->exitCommand(); at->exitCommand();
sock_connected = false; sock_connected = false;
@@ -159,11 +161,11 @@ public:
commandMode(); commandMode();
sendAT(GF("AP0")); // Put in transparent mode sendAT(GF("AP0")); // Put in transparent mode
waitResponse(); waitResponse();
sendAT(GF("GTC8")); // shorten the guard time to 200ms sendAT(GF("GT64")); // shorten the guard time to 100ms
waitResponse(); waitResponse();
writeChanges(); writeChanges();
exitCommand(); exitCommand();
guardTime = 225; guardTime = 125;
return true; return true;
} }