Skip to content

Commit f728e35

Browse files
committed
increase http int timeout
1 parent fc01546 commit f728e35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/GPRS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ Result openGPRSContext(SIM800 *sim800, const char *apn)
6767
}
6868
}
6969

70-
if (sim800->sendCmdAndWaitForResp_P(BEARER_PROFILE_GPRS, AT_OK, 8000) == FALSE)
70+
if (sim800->sendCmdAndWaitForResp_P(BEARER_PROFILE_GPRS, AT_OK, 10000) == FALSE)
7171
result = ERROR_BEARER_PROFILE_GPRS;
7272

7373
char httpApn[64];
7474
char tmp[24];
7575
strcpy_P(tmp, apn);
7676
sprintf_P(httpApn, BEARER_PROFILE_APN, tmp);
77-
if (sim800->sendCmdAndWaitForResp(httpApn, AT_OK_, 6000) == FALSE)
77+
if (sim800->sendCmdAndWaitForResp(httpApn, AT_OK_, 8000) == FALSE)
7878
result = ERROR_BEARER_PROFILE_APN;
7979

8080
while (sim800->sendCmdAndWaitForResp_P(QUERY_BEARER, BEARER_OPEN, 6000) == FALSE && attempts < MAX_ATTEMPTS)

0 commit comments

Comments
 (0)