Fixed typos
This commit is contained in:
@@ -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
|
// Response may be an immediate "OK" followed later by "+NETOPEN: 1".
|
||||||
// a URC "+NETOPEN: 1". We to ignore any immediate response and wait for the
|
// We to ignore any immediate response and wait for the
|
||||||
// URC to show it's realy connected.
|
// 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);
|
sendAT(GF("+CIPOPEN="), mux, ',', GF("\"TCP"), GF("\",\""), host, GF("\","), port);
|
||||||
if (waitResponse(GF(GSM_NL "+CIOPEN:")) != 1) { // reply is +USOCR: ## of socket created
|
if (waitResponse(GF(GSM_NL "+CIPOPEN:")) != 1) { // reply is +USOCR: ## of socket created
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return waitResponse() == 1;
|
return waitResponse() == 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user