ESP32 Webserver library recommendation

Hi,

I am trying to build a webpage for my ESP32. I have been doing a lot of reading on which way to go, and I feel a little bit overwhelmed with all the different libraries and methods of achieving this.

I'm hoping for some advice which way to go before I get too invested in one library. My primary target is to show live sensor readings (this part I have managed already), but ideally I want to be able to read / write various variable types to change settings as well.
Preferably, I want to keep the settings on a separate page protected by a username and password.

the WebServer library bundled with esp32 arduino

Thanks for the quick response, will the included WebServer library really do everything (Main page without login, displaying live sensor readings, settings page with simple login where I can read write variables to be stored)?

If so why does it seem that each time I look for examples on google they seem to use other libraries such as AsyncTCP?

Do you know of any example that is more or less covering live sensor reading on primary page + reading / writing variables such as settings in a separate password protected page?

I seem to be finding separate examples, and as I mentioned, it seems that I keep finding them on other libraries.

first see the examples of the WebServer library in Arduino IDE Examples menu

Yes I did already and tried them already.

I have an example of a Webserver

  • the server
  • how to display pin states (a pin or a sensor is very similar)
  • how to switch pins
  • how to update data on the page with the Fetch API

https://werner.rothschopf.net/microcontroller/202108_esp_generic_webserver_en.htm

Examples including webforms to transmit data:
https://werner.rothschopf.net/microcontroller/202310_esp_webserver_maxi_en.htm

Not in the examples from your list is

  • password protection.
1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.