@@ -91,7 +91,6 @@ int LoRaConnectionHandler::write(const uint8_t *buf, size_t size) {
91
91
modem.beginPacket ();
92
92
modem.write (buf, size);
93
93
err = modem.endPacket (true );
94
- /* Error manager according pr #68 of MKRWAN repo*/
95
94
if (err != size) {
96
95
switch (err) {
97
96
case -20 : {
@@ -166,7 +165,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleInit() {
166
165
execNetworkEventCallback (_on_error_event_callback, 0 );
167
166
Debug.print (DBG_ERROR, " Something went wrong; are you indoor? Move near a window, then reset and retry." );
168
167
};
169
- delay (1000 );
170
168
Debug.print (DBG_INFO, " Connecting to the network" );
171
169
connectionTickTimeInterval = CHECK_INTERVAL_CONNECTING;
172
170
return NetworkConnectionState::CONNECTING;
@@ -193,7 +191,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnected() {
193
191
Debug.print (DBG_VERBOSE, " Connection state: %d" , networkStatus);
194
192
if (networkStatus != true ) {
195
193
execNetworkEventCallback (_on_disconnect_event_callback, 0 );
196
- // Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
197
194
198
195
Debug.print (DBG_ERROR, " Connection to the network lost." );
199
196
if (keepAlive) {
@@ -209,7 +206,6 @@ NetworkConnectionState LoRaConnectionHandler::update_handleConnected() {
209
206
210
207
NetworkConnectionState LoRaConnectionHandler::update_handleDisconnecting () {
211
208
execNetworkEventCallback (_on_disconnect_event_callback, 0 );
212
- // Debug.print(DBG_VERBOSE, "WiFi.status(): %d", WiFi.status());
213
209
214
210
Debug.print (DBG_ERROR, " Connection to the network lost." );
215
211
if (keepAlive) {
0 commit comments