As in title: Is there any “clever” way (without modifying library) to disable the reboot after triggering the BLYNK_FATAL
error on Arduino Mega and Blynk Library 0.5.1?
This is a simple check connection/reconnect function, and it basically works as expected. But every time it traps into this error, it reboots. Now, I’d like to try how the device can handle all this without reboot, but it seems it is “hardcoded” in library.
void GPRScheck() {
digitalWrite(LED_BUILTIN, HIGH);
int csq = modem.getSignalQuality();
Serial.println(" SigQ: " + String(csq));
if (!modem.isGprsConnected()) {
modem.restart();
modem.simUnlock("1111");
Blynk.config(modem, auth, server);
if (Blynk.connectNetwork(apn, user, pass)) {
Serial.println("Local IP: " + modem.getLocalIP());
Blynk.connect();
}
}
delay(50);
digitalWrite(LED_BUILTIN, LOW);
}