|
19 | 19 | INCLUDE |
20 | 20 | ******************************************************************************/ |
21 | 21 |
|
22 | | -/* |
23 | | - static int const DBG_NONE = -1; |
24 | | - static int const DBG_ERROR = 0; |
25 | | - static int const DBG_WARNING = 1; |
26 | | - static int const DBG_INFO = 2; |
27 | | - static int const DBG_DEBUG = 3; |
28 | | - static int const DBG_VERBOSE = 4; |
29 | | -*/ |
30 | | - |
31 | 22 | #include "Arduino_GSMConnectionHandler.h" |
32 | 23 |
|
33 | 24 | #ifdef BOARD_HAS_GSM /* Only compile if this is a board with GSM */ |
|
38 | 29 |
|
39 | 30 | static int const GSM_TIMEOUT = 30000; |
40 | 31 |
|
41 | | -static unsigned int const CHECK_INTERVAL_TABLE[] = |
42 | | -{ |
43 | | - /* INIT */ 100, |
44 | | - /* CONNECTING */ 500, |
45 | | - /* CONNECTED */ 10000, |
46 | | - /* GETTIME */ 100, |
47 | | - /* DISCONNECTING */ 100, |
48 | | - /* DISCONNECTED */ 1000, |
49 | | - /* CLOSED */ 1000, |
50 | | - /* ERROR */ 1000 |
51 | | -}; |
52 | | - |
53 | 32 | /****************************************************************************** |
54 | 33 | CTOR/DTOR |
55 | 34 | ******************************************************************************/ |
@@ -88,7 +67,6 @@ NetworkConnectionState GSMConnectionHandler::check() |
88 | 67 | case NetworkConnectionState::INIT: _netConnectionState = update_handleInit(); break; |
89 | 68 | case NetworkConnectionState::CONNECTING: _netConnectionState = update_handleConnecting(); break; |
90 | 69 | case NetworkConnectionState::CONNECTED: _netConnectionState = update_handleConnected(); break; |
91 | | - case NetworkConnectionState::GETTIME: /* Unused */ break; |
92 | 70 | case NetworkConnectionState::DISCONNECTING: _netConnectionState = update_handleDisconnecting(); break; |
93 | 71 | case NetworkConnectionState::DISCONNECTED: _netConnectionState = update_handleDisconnected(); break; |
94 | 72 | case NetworkConnectionState::ERROR: break; |
|
0 commit comments