Skip to content

Commit 9e12f60

Browse files
Add GPRS timeout for GSM connections.
1 parent 2472183 commit 9e12f60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Arduino_GSMConnectionHandler.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
******************************************************************************/
2929

3030
static int const GSM_TIMEOUT = 30000;
31+
static int const GPRS_TIMEOUT = 30000;
3132

3233
/******************************************************************************
3334
FUNCTION DEFINITION
@@ -82,6 +83,7 @@ NetworkConnectionState GSMConnectionHandler::update_handleInit()
8283

8384
Debug.print(DBG_INFO, F("SIM card ok"));
8485
_gsm.setTimeout(GSM_TIMEOUT);
86+
_gprs.setTimeout(GPRS_TIMEOUT);
8587

8688
mkr_gsm_feed_watchdog();
8789

0 commit comments

Comments
 (0)