Why is my Wi-Fi stuck on connecting?

Why is my Wi-Fi stuck on connecting?

Navigate to Settings > Network & Internet > Wi-Fi and select the network that’s stuck in the ‘Obtaining IP address’ loop. Next, tap Forget to erase the network’s credentials from your device. Reconnect to the Wi-Fi network, enter its authorization credentials, i.e., password (if any) and check if the error persists.

What do I do when my Wi-Fi says authentication error?

How to fix Wi-Fi authentication problems on Android

  1. Toggle Airplane mode.
  2. Forget and reconnect to the Wi-Fi network.
  3. Reboot your Wi-Fi router.
  4. Change the network from DHCP to Static.
  5. Reset your network settings.

Can a NodeMCU automatically reconnect to a WiFi router?

The ESP8266 has the ability to automatically reconnect to your router in case of a Wi-Fi outage. For example, if the ESP8266 is connected to your router and you suddenly turn it off, when it goes back on, the ESP8266 can reconnect automatically. However, many of our readers report situations in which the ESP8266 doesn’t reconnect.

How to reconnect ESP8266 NodeMCU after losing connection?

Alternatively, you can also try to restart the ESP8266 with ESP.restart () when the connection is lost. You can add something like the snippet below to the loop () that checks once in a while if the board is connected and tries to reconnect if it has lost the connection.

Why does my Arduino not connect to WiFi?

If your powering the device via a computer USB port there is a good chance it’s not providing enough power for the wifi. Try powering fron an external source. Thanks for contributing an answer to Arduino Stack Exchange! Please be sure to answer the question.

What does onwificonnect ( ) do on ESP8266?

The onWifiConnect () function simply prints that the ESP8266 connected to Wi-fi successfully and prints its local IP address. However, you can modify the function to do any other task (like light up an LED to indicate that it is successfully connected to the network).