diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index f04149c..aab06fc 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -358,11 +358,11 @@ protected: waitResponse(); } sendAT(GF("+CIPSTART="), mux, ',', ssl ? GF("\"SSL") : GF("\"TCP"), GF("\",\""), host, GF("\","), port, GF(","), TINY_GSM_TCP_KEEP_ALIVE); + // TODO: Check mux int rsp = waitResponse(75000L, GFP(GSM_OK), GFP(GSM_ERROR), GF(GSM_NL "ALREADY CONNECT" GSM_NL)); - waitResponse(100, GF("CONNECT")); // TODO: use mux return (1 == rsp); }