• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Create a Wi-Fi Manager tutorial – cannot connect to ESP

Q&A Forum › Category: ESP32 › Create a Wi-Fi Manager tutorial – cannot connect to ESP
0 Vote Up Vote Down
Steve Gale asked 11 months ago

I have followed the above tutorial, downloaded to my ESP32.
On first boot the ssid files etc are empty so it creates a Wi-Fi Hotspot.
I cannot connect to this from my Raspberry PI 4 and after a couple of attempts managed to connect my MAC.
The ESP then rebooted but did not connect to my home network, so it created a hotspot but I can’t connect to it.
 
I am building using VSC on  my PI4, when platform io configured the project there was an error message asking which version of “ESP Async manager ”  to use, it had found 4.
Does it matter which version to use?
I would like to get this sorted as the functionality is just what I am need for my project.
 
Thanks
 
Steve

4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
No, I don’t think it matters which version of the library you are using…
 
Have you tried to connect to the hotspot using other devices, like your smartphone?
Do you see the ESP32 hot spot in the wi-fi settings?
 
Do you get to the step where you need to insert the ssid and password?
Does your password or ssid have weird characters like ~^@?
 
Regards,

Sara
 

0 Vote Up Vote Down
Steve Gale answered 11 months ago

Thanks for the quick response, still having problems.
This morning at home I managed to connect to the ESP-wifi-mamnager hotspot and enter my SSID details but it would not connect.
Not sure if this is because my netwrok allocates IP addresses on 192.168.4.xxx not 192.168.1.xxx
 
I tried changing this in the code and web page to 192.168.4.200 and 192.168.4.1.1 for gateway but it did nt make any difference.
 
So I am trying at the hackpsace and building the code on my MAC.
The first time I built and tested I connected to the esp-wifi-manager SSID and entered the wifi details.
 
Still would not connect to the hackspace wifi.
 
Now when I try I get the following messages
 
Undefined SSID or IP address.
Setting AP (Access Point)
AP IP address: 192.168.4.1
[ 13815][E][vfs_api.cpp:105] open(): /littlefs/wifimanager.html does not exist, no permits for creation
[ 13825][E][vfs_api.cpp:105] open(): /littlefs/wifimanager.html.gz does not exist, no permits for creation
I have built the image and uploaded the files several times, deleted the flash and started again, I cannot get rid of this error.
 
I will persevere and get to the bottom of this !
I love your tutorials but hate the ESP !
Steve

0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
That seems to be an issue related to LittleFS: https://github.com/espressif/arduino-esp32/issues/7615
According some other discussions that’s just a warning message that doesn’t interfere with the working of the program: https://community.platformio.org/t/espasyncwebserver-littlefs-file-does-not-exist-no-permits-for-creation/35949/3
 
You can try to use SPIFFS instead and that issue should be gone.
You just need to change the word “LittleFS” to “SPIFFS” in the code.
 
Regards,
Sara
 

0 Vote Up Vote Down
Steve Gale answered 11 months ago

Hi Sara,
I have got it working, I erased the flash and started again.
Then commented out the following lines to see what would happen

if (!WiFi.config(localIP, localGateway, subnet)){
Serial.println(“STA Failed to configure”);
returnfalse;
}

It connected to my Wifi and worked, so I noted the IP address it connected on,
 
192.168.4.177, set the gateway to 192.168.4.1 in the code, put the config code back in and it is working!
 
Do not know what was going on, but thanks for the suggestions, on to the next part of the project, I will leave you in peace for a few days 🙂
 
Steve

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.