File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,19 @@ NetworkConnectionState LoRaConnectionHandler::check() {
119119 return netConnectionState;
120120}
121121
122+ void LoRaConnectionHandler::connect ()
123+ {
124+ if (netConnectionState != NetworkConnectionState::INIT && netConnectionState != NetworkConnectionState::CONNECTING)
125+ {
126+ _keep_alive = true ;
127+ netConnectionState = NetworkConnectionState::INIT;
128+ }
129+ }
130+ void LoRaConnectionHandler::disconnect ()
131+ {
132+ /* Do nothing */
133+ }
134+
122135/* *****************************************************************************
123136 PRIVATE MEMBER FUNCTIONS
124137 ******************************************************************************/
@@ -196,17 +209,4 @@ NetworkConnectionState LoRaConnectionHandler::update_handleDisconnected() {
196209
197210}
198211
199- void LoRaConnectionHandler::connect () {
200- if (netConnectionState == NetworkConnectionState::INIT || netConnectionState == NetworkConnectionState::CONNECTING) {
201- return ;
202- }
203- _keep_alive = true ;
204- _connectionTickTimeInterval = CHECK_INTERVAL_INIT;
205- netConnectionState = NetworkConnectionState::INIT;
206-
207- }
208- void LoRaConnectionHandler::disconnect () {
209- // do nothing
210- return ;
211- }
212212#endif
You can’t perform that action at this time.
0 commit comments