Extra wait to clear buffer
This commit is contained in:
@@ -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>
|
||||||
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user