I have a generic ESP32WROOM32 board. I got it working with Arduino IDE 1.8.19 with Flash Frequency 40 MHz and DIO mode. It won’t run with Platformio since I don’t know how to set those parameters in VSCode.
I can load the data files into a SPIFFS partition with the ESP32 Sketch Data plugin, and the code for 2.1-Web Server Outputs compiles without errors. I get this from the serial output:
Connecting to WiFi …192.168.254.157
SPIFFS mounted successfully
I get 404 or 500 error messages depending on whether I enter only the address or /index.html.
No webpage was found for the web address: http://192.168.254.157/
HTTP ERROR 404
Anyone have any ideas on how to troubleshoot this? I have ordered two different boards directly from China to see if they might work with one of the board options in VSCode.
404 is file not found; have you tried http://192.168.254.157/index.html ?
Check for filenames for typos; filenames are case sensitive.
Make sure you have the right files on the right path (data folder) and that you’ve uploaded the files to the board.
Thanks, William and Sara,
I tried another board with http://192.168.254.158/index.html (my router assigned it a new IP address). Now I get HTTP Error 500 or page isn’t working, currently unable to handle this request. I will go back and rewrite the index.html file and check it for errors. Also, I will try renaming the data folder to Data in case it’s sensitive to that.
I believe the issue is either because you’re not placing the files in the right place or you’re not uploading the files to the board.
Make sure you created the data folder correctly in the right place (the folder should be called data) and that you placed the files with the right name inside that folder. Additionally, make sure you don’t forget to “Upload Filesystem Image” before uploading the code to the board.
I uninstalled both versions of the Arduino IDE (1.8.19 and 2.2.1) and reinstalled 1.8.19 in the Windows app store version. I started following Module 1, Unit 2 of the new Learn ESP32 with Arduino course I just bought. I discovered that Java had been removed from my computer.
Apparently the Arduino IDE partially works without the Java Runtime but not for ESP32 web servers. I just got the ESP32_Async_Web_Server project running with the default setup for the ESP32-WROOM-DA Module.
Is everything working as expected at the moment?
Let me know if you need help with anything else.
thank you Sara Santos, my problem was arising from not uploading filesystem image. but now I got it fixed and I am now cruising