• 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

Build WebServers with ESP32 Chapter 4.3 WiFi-Manager

Q&A Forum › Category: ESP32 › Build WebServers with ESP32 Chapter 4.3 WiFi-Manager
0 Vote Up Vote Down
Michael Reisch asked 6 months ago

Hello Sara,
I´m working at the moment the WebServers course to get a deeper look in html. So I´m working at the WiFi-Manager and have several problems.

  1. SUBMIT Button in wifimanager.html did not work, I think the problem is a missing script.js file. wifimanager.html line 31 addresses a script.js file. Can you show me what content should be in that script file?
  2. Very often when I restart the ESP32 it can not connect to my network, it starts then in AccessPoint method. But my network credentials shown in the Serial monitor was correct.

Thanks for your help, best regards
Michael

Question Tags: ESP32, webserver
11 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

Hi.
You probably didn’t upload that file to the filesystem… is that script.js file in your data folder?
 
Are you sure the credentials are correct? Please note that extra spaces, uppercase, and lowercase also matter.
 
Regards,
Sara

0 Vote Up Vote Down
Michael Reisch answered 6 months ago

Hi Sara,
sorry about my late answer. I found the problem, there was a blank at the end of my ssid. When I enter the ssid on my iPhone and use the text completion then this adds a blank.
It works fine now!
best regards
Michael

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

Great.
I’m glad you found the issue.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Bernie answered 5 months ago

Hi Sara, I find <Wifi.h> (WiFiClient, WiFiServer, WebServer classes) to be rather unreliable in addition to being bulky and memory hugging.  Does your book describe a different hopefully minimalist webserver that is reliable?
About 20% of the time, I do not get a response from the server, and sometimes I get a response that is 30 seconds delayed.  Often the webserver just disappears while everything else is working.
On the other hand, I have had good results with HTTPUpdateServer (its GUI is bad).
Thanks

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

Hi.
In the eBook, we use the ESPAsyncWebServer.
It works reliably for all the examples we tested.
Regards,
Sara

0 Vote Up Vote Down
Bernie answered 5 months ago

Is there a minimalist web server anywhere in the library or on GitHub?  The server does not need to be async or handle more than one client.  And it should be connectionless.
 
What is the lowest level class that sends a block of data to the WiFi device via http?  Should not be difficult to write a minimalist http server?
Thanks

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

In your Arduino IDE, after selecting an ESP32 board, go to File > Examples > WebServer and you’ll get several options for web servers using the most basic web server library included with the ESP32 core.
 
We also have this tutorial using a more minimalist approach but doesn’t work as well as the async web servers: https://randomnerdtutorials.com/esp32-web-server-arduino-ide/
 
Regards,
Sara

0 Vote Up Vote Down
Bernie answered 5 months ago

Many thanks Sara.

0 Vote Up Vote Down
Bernie answered 5 months ago

Hi Sara, all the examples on the IDE use WiFi.h.

Comparing a compile of a null sketch (null setup + null loop) on an ESP-32 DevKit V1 with one that includes WiFi.h plus a WiFiClient and a WiFiServer object, the WiFi code uses 45% (585 KB) of extra flash memory!  Clearly WiFi.h is suboptimal.

https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ also uses WFi.h.

Bernie

0 Vote Up Vote Down
Bernie answered 5 months ago

Sara do you have a course or tutorial for figuring out the memory structure, mapping, and partitions, internal/external memory, integrated memory, QSPI memory of an ESP32-S3?  The S3 is supposed to have 4 MB of integrated flash, 520 KB of SRAM, but we only get 1.34 MB of flash and 320 KB of SRAM?  What gives?

Also what is in the ROM and where is the kernel and the OS?  How does download work?

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

Hi.
Thanks for your interest in those subjects.
Unfortunately, we don’t have any resources about those specific subjects.
Regards,
Sara

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.