debugSerial.println("There was no response from the device.");
loraSetup();
break;
caseTimeout:
debugSerial.println("Connection timed-out. Check your serial connection to the device! Sleeping for 20sec.");
delay(20000);
break;
casePayloadSizeError:
debugSerial.println("The size of the payload is greater than allowed. Transmission failed!");
break;
caseInternalError:
debugSerial.println("Oh No! This shouldn't happen. Something is really wrong! Try restarting the device!\r\nThe network connection will reset.");
loraSetup();
break;
caseBusy:
debugSerial.println("The device is busy. Sleeping for 10 extra seconds.");
delay(10000);
break;
caseNetworkFatalError:
debugSerial.println("There is a non-recoverable error with the network connection. You should re-connect.\r\nThe network connection will reset.");
loraSetup();
break;
caseNotConnected:
debugSerial.println("The device is not connected to the network. Please connect to the network before attempting to send data.\r\nThe network connection will reset.");
loraSetup();
break;
caseNoAcknowledgment:
debugSerial.println("There was no acknowledgment sent back!");
// When you this message you are probaly out of range of the network.