From cdfad5274d1862495c86eb0deedfa462998af0c1 Mon Sep 17 00:00:00 2001 From: SRGDamia1 Date: Thu, 13 Apr 2017 15:33:11 -0400 Subject: [PATCH] Extra wait to clear buffer --- TinyGsmClient.h | 2 +- TinyGsmClientXBee.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TinyGsmClient.h b/TinyGsmClient.h index cb2fa08..421914c 100644 --- a/TinyGsmClient.h +++ b/TinyGsmClient.h @@ -9,7 +9,7 @@ #ifndef 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 #elif defined(TINY_GSM_MODEM_A6) || defined(TINY_GSM_MODEM_A7) #include diff --git a/TinyGsmClientXBee.h b/TinyGsmClientXBee.h index adb7546..e88f43d 100644 --- a/TinyGsmClientXBee.h +++ b/TinyGsmClientXBee.h @@ -98,7 +98,7 @@ public: at->exitCommand(); at->modemSend("", 1, mux); at->waitResponse(); - delay(100); + at->waitResponse(); // To clear the buffer at->commandMode(); at->sendAT(GF("TM64")); // Set socket timeout back to 10seconds; at->waitResponse();