Removed extra wait for 'connect' b/c it is before the ok
This commit is contained in:
		@@ -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);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user