@@ -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
210207NetworkConnectionState 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