Skip to content

Commit 5cca5c1

Browse files
authored
Merge pull request #61 from PhysicsUofRAUI/master
Add GPRS timeout for GSM connections.
2 parents 2472183 + 9e12f60 commit 5cca5c1

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)