Browse Source

Longer wait for SIM5360 connection

v_master
Sara Damiano 5 years ago
parent
commit
a05c1d96c1
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/TinyGsmClientSIM5360.h

+ 3
- 2
src/TinyGsmClientSIM5360.h View File

@ -635,10 +635,11 @@ protected:
// Establish connection in multi-socket mode // Establish connection in multi-socket mode
sendAT(GF("+CIPOPEN="), mux, ',', GF("\"TCP"), GF("\",\""), host, GF("\","), port); 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 false;
} }
return waitResponse() == 1;
return true;
} }
int16_t modemSend(const void* buff, size_t len, uint8_t mux) { int16_t modemSend(const void* buff, size_t len, uint8_t mux) {


Loading…
Cancel
Save