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
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
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
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
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