RUnning the webserver example I find that when you try to access the server from a second device the server does not respond. Resetting the esp causes the server to respond to whatever device first accesses the web page.
Hello Andy, which Unit are you following? Which web browser are you using?
It looks like your web browser is not closing the connection (after you open the web server with one client), so the ESP32 is not ready to receive the connection from a new client.
THanks for the quick response.
Module 4, Unit 4.
I’m using Google Chrome.
Yes, it seems the browser is not disconnecting. Is there a way for the ESP to force disconnect since I cant control users browsers?
By the way: is there a users manual, or at least call and paramter descriptions of the various libraries, or do I just have to decode the *.h files?
If the client (Google Chrome) doesn’t automatically stop the connection, I don’t think there’s a way to force the disconnect. Does it disconnect when you close the web browser window?
I usually use the Arduino reference guide (since most functions are the same): https://www.arduino.cc/en/Reference/WiFi
However, the ESP32 has new functions that aren’t described there. The documentation is poor, so I often use the built-in Github repository search features.
As you said, you can also navigate through the files:
Or use the Keywords.txt file to see the available datatypes and functions:
Yes, disconnecting the web browser works.
Re-initializing wifi also works (WiFi.disconnect(); and WiFi.begin(ssid, password);),
while it takes time, it is under the control of the esp.
Yes, but this shouldn’t happen. After accessing the web server page and it loaded all the buttons, it should automatically close the connection. I’ve tried to replicate this issue on my end to see if I could provide a good a solution, but it works fine on my web browser…
I’ll be testing it a bit more tomorrow on a different PC to see, if I can figure out a solution. Thanks for your patience!