From a05c1d96c154353c81bf46a703cbd2384612059b Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 19 Jul 2019 09:45:04 -0400 Subject: [PATCH] Longer wait for SIM5360 connection --- src/TinyGsmClientSIM5360.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TinyGsmClientSIM5360.h b/src/TinyGsmClientSIM5360.h index 59ed63c..0083fbe 100644 --- a/src/TinyGsmClientSIM5360.h +++ b/src/TinyGsmClientSIM5360.h @@ -635,10 +635,11 @@ protected: // Establish connection in multi-socket mode sendAT(GF("+CIPOPEN="), mux, ',', GF("\"TCP"), GF("\",\""), host, GF("\","), port); - if (waitResponse(GF(GSM_NL "+CIPOPEN:")) != 1) { // reply is +USOCR: ## of socket created + // reply is +CIPOPEN: ## of socket created + if (waitResponse(15000L, GF(GSM_NL "+CIPOPEN:")) != 1) { return false; } - return waitResponse() == 1; + return true; } int16_t modemSend(const void* buff, size_t len, uint8_t mux) {