Skip to content

Commit 8ea22ec

Browse files
committed
Unnecessary code and comments have been removed
1 parent 2d50cea commit 8ea22ec

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/Arduino_ConnectionHandler.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
INCLUDES
2323
******************************************************************************/
2424

25-
//#include <Client.h>
26-
//#include <Udp.h>
27-
2825
#include <Arduino_DebugUtils.h>
2926

3027
/******************************************************************************

src/Arduino_LPWANConnectionHandler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class LPWANConnectionHandler : public ConnectionHandler {
4646
};
4747

4848
#if defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310)
49-
//#error BOARD_HAS_LORA
5049
#include "Arduino_LoRaConnectionHandler.h"
5150
#endif
5251

src/Arduino_LoRaConnectionHandler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ int LoRaConnectionHandler::write(const uint8_t *buf, size_t size) {
9191
modem.beginPacket();
9292
modem.write(buf, size);
9393
err = modem.endPacket(true);
94-
/*Error manager according pr #68 of MKRWAN repo*/
9594
if (err != size) {
9695
switch (err) {
9796
case -20: {
@@ -166,7 +165,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleInit() {
166165
execNetworkEventCallback(_on_error_event_callback, 0);
167166
Debug.print(DBG_ERROR, "Something went wrong; are you indoor? Move near a window, then reset and retry.");
168167
};
169-
delay(1000);
170168
Debug.print(DBG_INFO, "Connecting to the network");
171169
connectionTickTimeInterval = CHECK_INTERVAL_CONNECTING;
172170
return NetworkConnectionState::CONNECTING;
@@ -193,7 +191,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnected() {
193191
Debug.print(DBG_VERBOSE, "Connection state: %d", networkStatus);
194192
if (networkStatus != true) {
195193
execNetworkEventCallback(_on_disconnect_event_callback, 0);
196-
//Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
197194

198195
Debug.print(DBG_ERROR, "Connection to the network lost.");
199196
if (keepAlive) {
@@ -209,7 +206,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnected() {
209206

210207
NetworkConnectionState LoRaConnectionHandler::update_handleDisconnecting() {
211208
execNetworkEventCallback(_on_disconnect_event_callback, 0);
212-
//Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
213209

214210
Debug.print(DBG_ERROR, "Connection to the network lost.");
215211
if (keepAlive) {

0 commit comments

Comments
 (0)