I just updated BLYNK Library to V1 Beta 3
When Blynk Local Server is down, the whole code is suspended until Blynk Server is back
As usual I am using this function to try to reconnect, but it never executes the function :
void loop() {
timer.run();
ArduinoOTA.handle(); // For OTA
if (Blynk.connected()) { // If connected run as normal
Blynk.run();
} else if (ReCnctFlag == 0) { // If NOT connected and not already trying to reconnect, set timer to try to reconnect in 30 seconds
ReCnctFlag = 1; // Set reconnection Flag
Serial.println("Starting reconnection timer in 60 seconds...");
timer.setTimeout(60000L, []() { // Lambda Reconnection Timer Function
ReCnctFlag = 0; // Reset reconnection Flag
ReCnctCount++; // Increment reconnection Counter
Serial.println();
Serial.print("Attempting reconnection #");
Serial.println(ReCnctCount);
Blynk.connect(); // Try to reconnect to the server
}); // END Timer Function
}
back to V0.6, issue disappear .