Browse Source

Removed extra delay in testAT, not sure why it was there

v_master
Sara Damiano 6 years ago
parent
commit
8e057f32ae
11 changed files with 11 additions and 35 deletions
  1. +1
    -1
      library.json
  2. +1
    -1
      library.properties
  3. +1
    -4
      src/TinyGsmClientA6.h
  4. +1
    -4
      src/TinyGsmClientBG96.h
  5. +1
    -4
      src/TinyGsmClientESP8266.h
  6. +1
    -4
      src/TinyGsmClientM590.h
  7. +1
    -4
      src/TinyGsmClientM95.h
  8. +1
    -4
      src/TinyGsmClientMC60.h
  9. +1
    -4
      src/TinyGsmClientSIM800.h
  10. +1
    -4
      src/TinyGsmClientUBLOX.h
  11. +1
    -1
      src/TinyGsmClientXBee.h

+ 1
- 1
library.json View File

@ -1,6 +1,6 @@
{ {
"name": "TinyGSM", "name": "TinyGSM",
"version": "0.4.2",
"version": "0.4.3",
"description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports many GSM and wifi modules with AT command interfaces.", "description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports many GSM and wifi modules with AT command interfaces.",
"keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968, M95, MC60, MC60E, BG96, ublox", "keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968, M95, MC60, MC60E, BG96, ublox",
"authors": "authors":


+ 1
- 1
library.properties View File

@ -1,5 +1,5 @@
name=TinyGSM name=TinyGSM
version=0.4.2
version=0.4.3
author=Volodymyr Shymanskyy author=Volodymyr Shymanskyy
maintainer=Volodymyr Shymanskyy maintainer=Volodymyr Shymanskyy
sentence=A small Arduino library for GPRS modules, that just works. sentence=A small Arduino library for GPRS modules, that just works.


+ 1
- 4
src/TinyGsmClientA6.h View File

@ -215,10 +215,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientBG96.h View File

@ -232,10 +232,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientESP8266.h View File

@ -230,10 +230,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientM590.h View File

@ -207,10 +207,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientM95.h View File

@ -236,10 +236,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientMC60.h View File

@ -243,10 +243,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientSIM800.h View File

@ -258,10 +258,7 @@ public:
//streamWrite(GF("AAAAA" GSM_NL)); // TODO: extra A's to help detect the baud rate //streamWrite(GF("AAAAA" GSM_NL)); // TODO: extra A's to help detect the baud rate
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 4
src/TinyGsmClientUBLOX.h View File

@ -252,10 +252,7 @@ public:
bool testAT(unsigned long timeout = 10000L) { bool testAT(unsigned long timeout = 10000L) {
for (unsigned long start = millis(); millis() - start < timeout; ) { for (unsigned long start = millis(); millis() - start < timeout; ) {
sendAT(GF("")); sendAT(GF(""));
if (waitResponse(200) == 1) {
delay(100);
return true;
}
if (waitResponse(200) == 1) return true;
delay(100); delay(100);
} }
return false; return false;


+ 1
- 1
src/TinyGsmClientXBee.h View File

@ -276,9 +276,9 @@ public:
{ {
sendAT(); sendAT();
if (waitResponse(200) == 1) { if (waitResponse(200) == 1) {
exitCommand();
return true; return true;
} }
exitCommand();
} }
delay(100); delay(100);
} }


Loading…
Cancel
Save