diff --git a/src/NBClient.cpp b/src/NBClient.cpp index 14cdeaf..81f33d0 100644 --- a/src/NBClient.cpp +++ b/src/NBClient.cpp @@ -317,7 +317,8 @@ size_t NBClient::write(const uint8_t* buf, size_t size) MODEM.send(command); if (_writeSync) { String response; - int status = MODEM.waitForResponse(10000, &response); + int status = + ForResponse(120000, &response); if ( status != 1) { if (status == 4 && response.indexOf("Operation not allowed") != -1 ) { stop(); @@ -437,7 +438,7 @@ void NBClient::stop() } MODEM.sendf("AT+USOCL=%d", _socket); - MODEM.waitForResponse(10000); + MODEM.waitForResponse(120000); NBSocketBuffer.close(_socket); @@ -455,4 +456,4 @@ void NBClient::handleUrc(const String& urc) } } } -} \ No newline at end of file +}