I need a very simple WebServer interface for my project to allow a user to enter configuration information when the board is first setup and occasional config changes during its life.
The data it will display/change includes IP Addresses, SubNet mask, some integer and boolean expressions and an array of 18B20 temperature sensor MAC addresses which are 8, hex numbers per sensor.
I’ve tried ESP-DASH but I need to pay to get all of the data types I need (and who does that?).
I’ve also tried ESP-DashboardPlus. Nice interface, but it’s overkill for what I need, plus some of the data types need to be adapted for my use. Also I found it will only work on port 80. Using any other port results in bizarre behaviour.
Any suggestions for a library which will provide basic html functionality? It doesn’t need to be pretty, just functional.
Then please report that bug to the original author. They may have hardcoded some port 80 or “http://” link logic that breaks this, not including the port number.
I feel like this could be a good use case for AI. Let it generate a HTML page according to your instruction that you’re happy with, with some place holders where you want to fill in your dynamic data (like sensors, etc..), then load the page from the filesystem or from flash, execute the template (e.g., very simple snprintf() and %s, %d format strings etc.) and send it. Essentially the technique of https://github.com/espressif/arduino-esp32/blob/master/libraries/WebServer/examples/AdvancedWebServer/AdvancedWebServer.ino.
I’ve taken your suggestion and used AI. I have a basic page up and running with ‘Live’ values read to and from Flash memory and being used in my app and I only started 55 minutes ago!
The page doesn’t have any ‘style’ but that isn’t important for this Use Case.