-->
Page 3 of 4

Re: ESPWebConfig - easy web configurator (AP or Station swit

PostPosted: Wed Sep 16, 2015 10:30 am
by martinayotte
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.

Re: ESPWebConfig - easy web configurator (AP or Station swit

PostPosted: Wed Sep 16, 2015 3:48 pm
by MajorMadness
Exactly, this is my Problem but I cant think about the hole lib is just to save the config... So maybe there's a way I can't see atm. If not, I'll have to rewrite some parts of it and put it into HelloWorld example of Server. ;)

Re: ESPWebConfig - easy web configurator (AP or Station swit

PostPosted: Wed Sep 16, 2015 4:14 pm
by martinayotte
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.

Re: ESPWebConfig - easy web configurator (AP or Station swit

PostPosted: Sat Sep 19, 2015 8:27 am
by somkoder
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!