@@ -644,8 +644,8 @@ protected:
|
|||||||
sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",1");
|
sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",1");
|
||||||
while (millis() - startMillis < timeout_ms &&
|
while (millis() - startMillis < timeout_ms &&
|
||||||
sockets[*mux]->sock_connected == false) {}
|
sockets[*mux]->sock_connected == false) {}
|
||||||
}
|
return sockets[*mux]->sock_connected == true;
|
||||||
else {
|
} else {
|
||||||
// use synchronous open
|
// use synchronous open
|
||||||
sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port);
|
sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port);
|
||||||
int rsp = waitResponse(timeout_ms);
|
int rsp = waitResponse(timeout_ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user