Browse Source

Name print

v_master
Sara Damiano 5 years ago
parent
commit
090e0163c5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/TinyGsmClientUBLOX.h

+ 2
- 1
src/TinyGsmClientUBLOX.h View File

@ -279,6 +279,7 @@ public:
String name = getModemName(); String name = getModemName();
DBG(GF("### Modem:"), name); DBG(GF("### Modem:"), name);
if (name.startsWith("u-blox SARA-R4") or name.startsWith("u-blox SARA-N4")) { if (name.startsWith("u-blox SARA-R4") or name.startsWith("u-blox SARA-N4")) {
DBG(GF("### This is an LTE-M modem!"), name);
isCatM = true; isCatM = true;
} }
else if (name.startsWith("u-blox SARA-N2")) { else if (name.startsWith("u-blox SARA-N2")) {
@ -833,7 +834,7 @@ protected:
} }
streamSkipUntil(','); // Skip mux streamSkipUntil(','); // Skip mux
int sent = stream.readStringUntil('\n').toInt(); int sent = stream.readStringUntil('\n').toInt();
waitResponse();
waitResponse(); // sends back OK after the confirmation of number sent
maintain(); // look for a very quick response from the remote maintain(); // look for a very quick response from the remote
return sent; return sent;
} }


Loading…
Cancel
Save