Hello !!
I have seen many of our Blynkers using these lines for reconnection
if (Blynk.connected()) {
Blynk.run();
} else if (ReCnctFlag == 0) {
ReCnctFlag = 1;
Serial.println("Starting reconnection timer in 10 seconds...");
Timer.setTimeout(10000L, []() {
ReCnctFlag = 0;
ReCnctCount++;
Serial.print("Attempting reconnection #");
Serial.println(ReCnctCount);
Blynk.connect();
});
}
My doubt is, what if the connection is dropped for days together ? Will the ESP crash after certain number of retries ? Because ReCnctCount
this value will go on raising every 10 seconds !!
Have anyone faced issue on this ? And is it better to remove the serial print ? Serial.println("Starting reconnection timer in 10 seconds..."); Serial.print("Attempting reconnection #");
just to lessen the burden for ESP ?