blynk server 0.36.4
lib: 0.5.2
android S8, 2.24.0
strange issue, one of my ESPs (wemos d1) disconnected at one point and never reconnected to the server. Ater several reboots (also router and server) reflash it still does not want to connect to server.
Note that it DOES connect to wifi, I can find it online but it won’t connect to the blynk (local) server.
Server currently has a total of 11 esps connected, they all work and connect, one just ‘gave up’ and won’t connect anymore.
I’ve tried two routines:
Serial.begin(9600);
Serial.println("Booting");
WiFi.setOutputPower(WIFIPOWER);
Serial.println("Blynk Begin");
Blynk.begin(auth, ssid, password, server, port);
Serial.println("Starting Blynk connection");
Serial.println("Blynk connect");
while (Blynk.connect() == false) { } // Wait until connected
which gives as last terminal output
Blynk begin
and I’ve tried
Serial.begin(9600);
Serial.println("Booting");
WiFi.setOutputPower(WIFIPOWER);
Serial.println("Blynk Begin");
WiFi.begin(ssid, password);
Serial.println("Blynk config");
Blynk.config(auth, server, port);
Serial.println("Blynk connect");
Blynk.connect();
which actually makes it all through, but again no connection to the blynk server is ever made and I also have these two routines:
in setup
timer.setInterval(TIME_RECONNECT_CHECK, reconnectBlynk); // check every minute if still connected to server
with
void reconnectBlynk() {
if (!Blynk.connected()) {
Serial.println("Lost connection");
if(Blynk.connect()) {
Serial.println("Reconnected");
}
else {
Serial.println("Not reconnected");
}
}
}
and after a minute I get the ‘lost connection’ (which in this case means: ‘never connected in the first place’) and ‘not reconnected’.
I’ve also refreshed the auth-token but same issue.
any clues, suggestions?