I need help about the delay when isn’t connection with the hardware,
For example in the Sketch I have timer.setInterval (1000, pisca) > the led should be blink each 1 second, ok this work normally when I have connection.
However when I lost connection and the arduino try to connect again, the blink change to 16 seconds.
In other words, I have blink of the 1 second when the arduino is connected to wifi, and isn’t connection I have 16 seconds of blink led.
If anybody can help me or reduce this difference or make a code using if(connected == true) or (connected == false) I tried to use the, bool result = blynk.connect(), but without sucess.
Below the code used;
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
// Set ESP8266 Serial object
//#define EspSerial Serial1
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = " ";
timer.setInterval(1000, blinK); // set the timer of blink
// Set console baud rate
// Set ESP8266 baud rate
Blynk.begin(auth, wifi, " ", " ");