Extra wait to clear buffer

This commit is contained in:
SRGDamia1
2017-04-13 15:33:11 -04:00
parent 5794d7b910
commit cdfad5274d
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
#ifndef TinyGsmClient_h #ifndef TinyGsmClient_h
#define TinyGsmClient_h #define TinyGsmClient_h
#if defined(TINY_GSM_MODEM_SIM800) || defined(TINY_GSM_MODEM_SIM900) #if defined(TINY_GSM_MODEM_SIM800) || defined(TINY_GSM_MODEM_SIM900)
#include <TinyGsmClientSIM800.h> #include <TinyGsmClientSIM800.h>
#elif defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_A7) #elif defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_A7)
#include <TinyGsmClientA6.h> #include <TinyGsmClientA6.h>

View File

@@ -98,7 +98,7 @@ public:
at->exitCommand(); at->exitCommand();
at->modemSend("", 1, mux); at->modemSend("", 1, mux);
at->waitResponse(); at->waitResponse();
delay(100); at->waitResponse(); // To clear the buffer
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->waitResponse();