Browse Source

Fixed typos

v_master
Sara Damiano 5 years ago
parent
commit
3e699c4864
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/TinyGsmClientSIM5360.h

+ 6
- 6
src/TinyGsmClientSIM5360.h View File

@ -388,9 +388,9 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
} }
// Start the socket service // Start the socket service
// Response may be an immediate "+NETOPEN: 0,0\r\n\r\nOK\r\n" followed later by
// a URC "+NETOPEN: 1". We to ignore any immediate response and wait for the
// URC to show it's realy connected.
// Response may be an immediate "OK" followed later by "+NETOPEN: 1".
// We to ignore any immediate response and wait for the
// URC to show it's really connected.
sendAT(GF("+NETOPEN")); sendAT(GF("+NETOPEN"));
if (waitResponse(75000L, GF(GSM_NL "+NETOPEN: 1")) != 1) { if (waitResponse(75000L, GF(GSM_NL "+NETOPEN: 1")) != 1) {
return false; return false;
@ -455,7 +455,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
return res; return res;
} }
CGPADDR=1ess localIP() {
IPAddress localIP() {
return TinyGsmIpFromString(getLocalIP()); return TinyGsmIpFromString(getLocalIP());
} }
@ -634,8 +634,8 @@ protected:
} }
// Establish connection in multi-socket mode // Establish connection in multi-socket mode
sendAT(GF("+CIOPEN="), mux, ',', GF("\"TCP"), GF("\",\""), host, GF("\","), port);
if (waitResponse(GF(GSM_NL "+CIOPEN:")) != 1) { // reply is +USOCR: ## of socket created
sendAT(GF("+CIPOPEN="), mux, ',', GF("\"TCP"), GF("\",\""), host, GF("\","), port);
if (waitResponse(GF(GSM_NL "+CIPOPEN:")) != 1) { // reply is +USOCR: ## of socket created
return false; return false;
} }
return waitResponse() == 1; return waitResponse() == 1;


Loading…
Cancel
Save