Browse Source

Extra yield in waitResponse

v_master
Sara Damiano 5 years ago
parent
commit
015c2b4144
12 changed files with 35 additions and 11 deletions
  1. +3
    -1
      src/TinyGsmClientA6.h
  2. +3
    -1
      src/TinyGsmClientBG96.h
  3. +3
    -1
      src/TinyGsmClientESP8266.h
  4. +3
    -1
      src/TinyGsmClientM590.h
  5. +3
    -1
      src/TinyGsmClientM95.h
  6. +3
    -1
      src/TinyGsmClientMC60.h
  7. +3
    -1
      src/TinyGsmClientSIM7000.h
  8. +2
    -1
      src/TinyGsmClientSIM800.h
  9. +3
    -1
      src/TinyGsmClientSaraR4.h
  10. +3
    -0
      src/TinyGsmClientSequansMonarch.h
  11. +3
    -1
      src/TinyGsmClientUBLOX.h
  12. +3
    -1
      src/TinyGsmClientXBee.h

+ 3
- 1
src/TinyGsmClientA6.h View File

@ -600,6 +600,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -652,7 +653,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientBG96.h View File

@ -617,6 +617,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -666,7 +667,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientESP8266.h View File

@ -404,6 +404,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -458,7 +459,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientM590.h View File

@ -494,6 +494,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -547,7 +548,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientM95.h View File

@ -676,6 +676,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -722,7 +723,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientMC60.h View File

@ -684,6 +684,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -733,7 +734,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientSIM7000.h View File

@ -921,6 +921,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -980,7 +981,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 2
- 1
src/TinyGsmClientSIM800.h View File

@ -910,7 +910,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientSaraR4.h View File

@ -689,6 +689,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -734,7 +735,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 0
src/TinyGsmClientSequansMonarch.h View File

@ -698,6 +698,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -743,6 +744,8 @@ finish:
} }
data = ""; data = "";
} }
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientUBLOX.h View File

@ -706,6 +706,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -751,7 +752,8 @@ finish:
} }
data = ""; data = "";
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


+ 3
- 1
src/TinyGsmClientXBee.h View File

@ -993,6 +993,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES()
do { do {
TINY_GSM_YIELD(); TINY_GSM_YIELD();
while (stream.available() > 0) { while (stream.available() > 0) {
TINY_GSM_YIELD();
int a = stream.read(); int a = stream.read();
if (a <= 0) continue; // Skip 0x00 bytes, just in case if (a <= 0) continue; // Skip 0x00 bytes, just in case
data += (char)a; data += (char)a;
@ -1031,7 +1032,8 @@ finish:
if (data.length()) { if (data.length()) {
} }
} }
//DBG('<', index, '>');
//data.replace(GSM_NL, "/");
//DBG('<', index, '>', data);
return index; return index;
} }


Loading…
Cancel
Save