Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By martinayotte
#29176 I thought that you were using HelloServer.ino example as a base for your sketch.
Looking at the ESPWebConfig, yes, that's true, it is only handling root page, ie: "/", and it is doing it own parsing for saving the arguments in ProcessParms().
Adding several pages inside this lib would not be as trivial as in the HelloServer.ino example.
User avatar
By martinayotte
#29197 Yes, that's better to merge best of both world !
I've done myself some kind of WebConfig using the ESP8266WebServer class, with server.on() handler, it save a lot of time. You can add javascripts, images, etc. quite easily, and the SaveConfig() handler is not part of the root, so you can simply do a POST to it without having the root page been reloaded.
User avatar
By somkoder
#29434 Well, as I myself like to read minimalistic examples when I'm investigating new hardware and/or languages, I wanted to provide a minimalistic library as well, without extra dependencies or complexities.

That is why it's self-contained and minimal.

Anyway, I'll try to find time for a second take, on a separate repository, with more features and using helper libraries for that.

Thanks for commenting!