-->
Page 3 of 74

Re: Introducing esp-httpd: webserver on an ESP8266.

PostPosted: Tue Oct 14, 2014 11:58 pm
by Squonk
longinus wrote:This is awesome! Nice job!

Is there a tutorial that goes a bit deeper into setting the compile environment for gcc, ESP SDK, etc?
There are a lot of information spread around the forum about this, but for a n00b like me I could definitely use a bit more of hand-holding...

Please check the Wiki.

Re: Introducing esp-httpd: webserver on an ESP8266.

PostPosted: Wed Oct 15, 2014 2:28 am
by longinus
Squonk wrote:Please check the Wiki.

Sweet, that looks very comprehensive! Thanks!

Re: Introducing esp-httpd: webserver on an ESP8266.

PostPosted: Wed Oct 15, 2014 3:47 pm
by spacejunkie
Looks neat. I made your LED blink a couple of times :)

Is the server accessible from AP interface only or can it be accessed via the station interface as well?

Here's an idea I had for tinkering with ESP8266 API which goes well with an embedded web server.
I was thinking of making an "API Playground" for ESP8266. It's basically a GUI to make API calls with custom arguments.

It would work something like this:
A script would parse the SDK files and build a map of functions, their arguments and return types.
The embedded web server would use this map to generate UI which lists these functions. (this can be pre-computed)
From the UI, one can select any function and pass it the required arguments.
The web server would then do the necessary type conversion, call the actual function and display the result.

It may not work for all functions but for simple functions like GPIO get/set it would work very well.

This will drastically shorten the development cycle by helping you to call the functions with different arguments and check their results without having to go through the code-compile-burn cycle every time. I believe we will see many SDK releases as the current one is not very mature. In this light, the automated SDK parser would come very handy.

Re: Introducing esp-httpd: webserver on an ESP8266.

PostPosted: Wed Oct 15, 2014 5:29 pm
by Reverend_Dave
The API playground would work wonderfully for me. My project has pretty limited goals, it just involves turning a (battery-powered) streetlight on and off (times about 20 lightposts). Getting A/D working (useful for stuff like battery voltage monitoring) would be a cherry on top of that...