@@ -50,7 +50,6 @@ LoRaConnectionHandler::LoRaConnectionHandler(char const * appeui, char const * a
5050, _appkey(appkey)
5151, _band(band)
5252, _device_class(device_class)
53- , _lastConnectionTickTime(millis())
5453{
5554
5655}
@@ -59,30 +58,6 @@ LoRaConnectionHandler::LoRaConnectionHandler(char const * appeui, char const * a
5958 PUBLIC MEMBER FUNCTIONS
6059 ******************************************************************************/
6160
62- NetworkConnectionState LoRaConnectionHandler::check ()
63- {
64- unsigned long const now = millis ();
65- unsigned int const connectionTickTimeInterval = CHECK_INTERVAL_TABLE[static_cast <unsigned int >(_netConnectionState)];
66-
67- if ((now - _lastConnectionTickTime) > connectionTickTimeInterval)
68- {
69- _lastConnectionTickTime = now;
70-
71- switch (_netConnectionState)
72- {
73- case NetworkConnectionState::INIT: _netConnectionState = update_handleInit (); break ;
74- case NetworkConnectionState::CONNECTING: _netConnectionState = update_handleConnecting (); break ;
75- case NetworkConnectionState::CONNECTED: _netConnectionState = update_handleConnected (); break ;
76- case NetworkConnectionState::DISCONNECTING: _netConnectionState = update_handleDisconnecting (); break ;
77- case NetworkConnectionState::DISCONNECTED: _netConnectionState = update_handleDisconnected (); break ;
78- case NetworkConnectionState::ERROR: break ;
79- case NetworkConnectionState::CLOSED: break ;
80- }
81- }
82-
83- return _netConnectionState;
84- }
85-
8661int LoRaConnectionHandler::write (const uint8_t * buf, size_t size)
8762{
8863 _modem.beginPacket ();
@@ -122,7 +97,7 @@ bool LoRaConnectionHandler::available()
12297}
12398
12499/* *****************************************************************************
125- PRIVATE MEMBER FUNCTIONS
100+ PROTECTED MEMBER FUNCTIONS
126101 ******************************************************************************/
127102
128103NetworkConnectionState LoRaConnectionHandler::update_handleInit ()
0 commit comments