Comments on: ESP8266 NodeMCU: Create a Wi-Fi Manager (AsyncWebServer library) https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 17 Mar 2025 11:16:37 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Dave https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-882672 Mon, 08 Jan 2024 07:34:50 +0000 https://randomnerdtutorials.com/?p=108729#comment-882672 There’s a key bit of information missing in this “How to..” page.

You need to know the Default Gateway address of the network that you want to connect to if you use this message.

In my case it was 192.168.20.1 so when it connected to the WiFi, the next step to enter the 192.168.1.200 didn’t work. It just hung and the browser timed out looking for it.

Run IPCONFIG from a command prompt and look at what your default gateway is. Use that address in the default gateway field.

Change the IP address you want the NodeMCU to appear at after you connect it to the SSID to match eg. 192.168.20.200 in my case.

Make sure your subnet mask in the code matches the subnet mask in IPCONFIG.

Then you might get somewhere when you connect. Mine is working now.

All I have to do now is work out how to find the default gateway and subnet mask of an iPhone hotspot and whether they are the same for all iPhones. Otherwise when I’m out of the development environment here in my shed, and trying to use this on a hotspot it’s going to fail too.

Wasted a lot of time finding this solution which really should have been covered in the article above.

Hope this helps someone else.

Dave

]]>
By: Dave https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-881893 Thu, 04 Jan 2024 07:11:39 +0000 https://randomnerdtutorials.com/?p=108729#comment-881893 I’ve been successful to the point where it’s time to connect to 192.168.1.200 but at that point my browser times out. If anyone has any suggestions I’d be appreciative.

I’ve tried connecting to both my iPhone hotspot & router in my shed and both connect just fine. LittleFS appears to have uploaded the the package from the tools folder created during this tutorial just fine.

LittleFS has thrown a few access denied errors trying to write to COM port however these clear if you disconnect, reconnect the usb & try again.

So I’m a bit lost how to diagnose. Is there a way of reading the content of the flash memory to see that the index.html file is there?

I realise this is to 63 not 200 and I’d changed that in a futile attempt to see if I had a printer or something with a fixed address that clashed.

Message on web browser attempting to access – This site can’t be reached192.168.1.63 took too long to respond.

Cheers,

Dave

]]>
By: Gerardo https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-859956 Mon, 11 Sep 2023 22:37:49 +0000 https://randomnerdtutorials.com/?p=108729#comment-859956 In reply to Manfred Bikardes.

Hi Manfred, I had the same issue you describe, please connect the esp8266 to the USB without cables and make sure has enough power supply, restarting loop means not enough power.

]]>
By: Cesar Morisco https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-835250 Thu, 18 May 2023 19:30:05 +0000 https://randomnerdtutorials.com/?p=108729#comment-835250 olá tudo bem ele funciona do ESP8266 01 TENHO MUITO DELE AQUI
Seria ótimos.
Eu ate fiz um compilação normal nele ele funciona não da o cesso ap
Obrigado

]]>
By: Yugo https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-802189 Sun, 11 Dec 2022 12:35:49 +0000 https://randomnerdtutorials.com/?p=108729#comment-802189 Hi Sara, thanks for your tutorial. Is the last step have some kind way can jump to the login page automatically?

]]>
By: K https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-794344 Wed, 26 Oct 2022 16:08:45 +0000 https://randomnerdtutorials.com/?p=108729#comment-794344 It would be really nice if someone could let me know how to modify the code so I can revisit wifimanager.html and change the settings later on.
wifimanager.html is available after setting everything up, but submitting the form throws error 500.
What do I have to modify so I am able to resubmit the form with new settings?

]]>
By: Сергей https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-772821 Wed, 03 Aug 2022 03:49:52 +0000 https://randomnerdtutorials.com/?p=108729#comment-772821 Hi. Sarah
This works with a Telegram bot.

WiFi.mode(WIFI_STA);
//localIP.fromString(ip.c_str());
//localGateway.fromString(gateway.c_str());
//if (!WiFi.config(localIP, localGateway, subnet)){
//Serial.println(“STA не удалось настроить”);
//return false;
//}
WiFi.begin(ssid.c_str(), pass.c_str());

Serial.println(“подключение к WiFi…”);
delay(20000);

I send a dynamic ID to the telegram bot and go to the WEB page from the telegram.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-772753 Tue, 02 Aug 2022 17:51:34 +0000 https://randomnerdtutorials.com/?p=108729#comment-772753 In reply to Сергей.

Hi.
Can you provide more details?
Do you get any errors? What exactly happens?
I never tried using both at the same time, but in theory, it should work. Maybe you need some adjustments in your code.
Regards,
Sara

]]>
By: Сергей https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-772535 Mon, 01 Aug 2022 16:04:04 +0000 https://randomnerdtutorials.com/?p=108729#comment-772535 In reply to Sara Santos.

Thanks. The question is, how do I launch telegram bot using a Wi-Fi manager (AsyncWebServer library)?
The WiFi manager from this article works great for me, the telegram bot also works separately, but they don work together. What needs to be changed in the code to make bat work?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-wi-fi-manager-asyncwebserver/#comment-772515 Mon, 01 Aug 2022 13:32:05 +0000 https://randomnerdtutorials.com/?p=108729#comment-772515 In reply to Sergey.

Hi.
We have several tutorials with Telegram bots: https://randomnerdtutorials.com/?s=telegram
Regards,
Sara

]]>