Removed extra wait for 'connect' b/c it is before the ok

This commit is contained in:
SRGDamia1
2017-10-26 16:15:37 -04:00
parent 5cba94408d
commit 6a04def5f3

View File

@@ -358,11 +358,11 @@ protected:
waitResponse(); waitResponse();
} }
sendAT(GF("+CIPSTART="), mux, ',', ssl ? GF("\"SSL") : GF("\"TCP"), GF("\",\""), host, GF("\","), port, GF(","), TINY_GSM_TCP_KEEP_ALIVE); 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, int rsp = waitResponse(75000L,
GFP(GSM_OK), GFP(GSM_OK),
GFP(GSM_ERROR), GFP(GSM_ERROR),
GF(GSM_NL "ALREADY CONNECT" GSM_NL)); GF(GSM_NL "ALREADY CONNECT" GSM_NL));
waitResponse(100, GF("CONNECT")); // TODO: use mux
return (1 == rsp); return (1 == rsp);
} }