Emilio
September 25, 2017, 10:47am
7
@Costas Understood.
However, the code below didn’t work in my case. It ran ok at startup then, when I turned the wifi off-on, it did not recover.
Why the V11?
Blynk.connectWiFi() is another Blynk function, not sure why that’s in the template. This is the exact code I am using, confirm it works for you.
/* NoBlynkBlock.ino by Costas for https://community.blynk.cc/t/blynk-is-blocking-if-internet-is-down/16809
will recover from server or router going down
*/
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char ssid[] = "xxx";
char pass[] = "xxx";
char auth[] = "xxx";
char server[] = "blynk-cloud.com";
Bly…