Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Animation Freezes upon internet/wifi disconnection #113

Open
insane2subro opened this issue Jan 11, 2019 · 1 comment
Open

Animation Freezes upon internet/wifi disconnection #113

insane2subro opened this issue Jan 11, 2019 · 1 comment

Comments

@insane2subro
Copy link

My problem is when ever the wifi/internet disconnects the animation freezes only to resume after the wifi/internet is back.

In India where data disconnection is very frequent with all ISPs it is a big problem, is there any way out of this?

@bryanberger
Copy link

@insane2subro You can add a conditional in the main loop function to try and reconnect to WiFi.

This is what i've done and it works fine.

  if (WiFi.status() != WL_CONNECTED) {
    delay(1);
    Serial.print("WIFI Disconnected. Attempting reconnection.");
    setup_wifi();
    return;
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants