Skip to content

Commit 10f0637

Browse files
author
Luigi Gubello
committed
Fix SIM not present bug
Removing while(1) to block the error message loop. Editing CHECK_INTERVAL_RETRYING value.
1 parent f9791ad commit 10f0637

5 files changed

+3
-5
lines changed

src/Arduino_GSMConnectionHandler.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ void GSMConnectionHandler::init() {
6464
changeConnectionState(NetworkConnectionState::CONNECTING);
6565
} else {
6666
Debug.print(DBG_ERROR, "SIM not present or wrong PIN");
67-
while (1);
6867
}
6968
}
7069

src/Arduino_GSMConnectionHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class GSMConnectionHandler : public TcpIpConnectionHandler {
6464
const int CHECK_INTERVAL_INIT = 100;
6565
const int CHECK_INTERVAL_CONNECTING = 500;
6666
const int CHECK_INTERVAL_CONNECTED = 10000;
67-
const int CHECK_INTERVAL_RETRYING = 5000;
67+
const int CHECK_INTERVAL_RETRYING = 30000;
6868
const int CHECK_INTERVAL_DISCONNECTED = 1000;
6969
const int CHECK_INTERVAL_ERROR = 500;
7070

src/Arduino_LoRaConnectionHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class LoRaConnectionHandler : public LPWANConnectionHandler {
6464
const int CHECK_INTERVAL_INIT = 100;
6565
const int CHECK_INTERVAL_CONNECTING = 500;
6666
const int CHECK_INTERVAL_CONNECTED = 10000;
67-
const int CHECK_INTERVAL_RETRYING = 5000;
67+
const int CHECK_INTERVAL_RETRYING = 30000;
6868
const int CHECK_INTERVAL_DISCONNECTING = 500;
6969
const int CHECK_INTERVAL_DISCONNECTED = 1000;
7070
const int CHECK_INTERVAL_ERROR = 500;

src/Arduino_NBConnectionHandler.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ void NBConnectionHandler::init() {
7171
changeConnectionState(NetworkConnectionState::CONNECTING);
7272
} else {
7373
Debug.print(DBG_ERROR, "SIM not present or wrong PIN");
74-
while (1);
7574
}
7675
}
7776

src/Arduino_NBConnectionHandler.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class NBConnectionHandler : public TcpIpConnectionHandler {
6565
const int CHECK_INTERVAL_INIT = 100;
6666
const int CHECK_INTERVAL_CONNECTING = 500;
6767
const int CHECK_INTERVAL_CONNECTED = 10000;
68-
const int CHECK_INTERVAL_RETRYING = 5000;
68+
const int CHECK_INTERVAL_RETRYING = 30000;
6969
const int CHECK_INTERVAL_DISCONNECTED = 1000;
7070
const int CHECK_INTERVAL_ERROR = 500;
7171

0 commit comments

Comments
 (0)