Closed I-Connect closed 10 months ago
bump
I forgot all about this and again spent 3 hours due to this endless loop causing a wdt reset somewhere.
Can you please at least put a log in the BlynkReset() method showing an endless loop is entered halting any tasks executing it.
thx
furthermore, these methods are defined as "noreturn" inBlynkDebug.h halting the code still even if you remove the endless loop
void BlynkReset() BLYNK_NORETURN;
void BlynkFatal() BLYNK_NORETURN;
BlynkFatal() was designed to fail this way.
You can use a generic Arduino Client example, and implement your own network maintenance routine: https://github.com/blynkkk/blynk-library/blob/master/examples/Boards_ArduinoClient/ESP8266_ESP32/ESP8266_ESP32.ino
Hi,
We are running Blynk on an ESP32 connecting via a GSM module.
I am working on reconnecting GPRS in case of errors like a failure on the provider side. Basically I continuously run a check on the gprs connection in the same task that handles Blynk.run():
Problem is that when Blynk.connectNetwork() fails on for instance line 79 in BlynkGsmClient.h:
BLYNK_FATAL(BLYNK_F("Register in network failed"));
it results in:
Which crashes the MCU for me on a wdt.
How can we circumvent this or could you build an option to overrule _BLYNK_USE_DEFAULT_RESET. As the define is in the same cpp as it is being used in I am unable to change (undef) this without editing the Blynk library
thx!