-->
Page 1 of 1

Simple webserver - no LUA, no AT, no Arduino

PostPosted: Mon Apr 13, 2015 8:55 am
by scargill
Has anyone seen any code that uses neither AT, an Arduino nor Lua (which gives you precious little RAM to do anything else)? Just C programming.... I have a great setup here with MQTT running a number of devices and can set it up via serial for ID, WIFI router details, MQTT details.. but I'd like to have the opportunity to power up to a simple web server which can take in those details in a form - no imagery, nothing fancy just a plain form which shows what access points are available (and which is the strongest) - and boxes to fill in the other details. The ONLY software I can find that fills this bill is large, spread over many files and has a web page compression system that won't work in Windows... I can't help thinking it can't be that hard to call something that sets the board up conditionally as a server and awaits feedback from a page. But as yet from the SDK manual I can't figure out how to do this from scratch. Any ideas?

Re: Simple webserver - no LUA, no AT, no Arduino

PostPosted: Mon Apr 13, 2015 9:26 am
by alonewolfx2
you can try many examples.
1-)http ajax server in sming very good and it has 24k free heap (with running http+ftp server.)its arduino like ide. and you can upload html files over ftp to the filesystem. https://github.com/anakod/Sming and for chat https://gitter.im/alonewolfx2/Sming
2-) Ly0's httpd port on github,it has ~30k free heap. but everything static. no filesystem. https://github.com/ly0/esp8266-httpd
3-) Sprite_tm's httpd port. i didnt test free heap. viewforum.php?f=34
4-) fdvitto's webframewor. based on rtos sdk. it has ~20k freeheap. https://github.com/alonewolfx2/ESPWebFramework
and finally i preffer sming. many functions already impelemented. (ex: you can download html or other files over http in to the filesystem)

Re: Simple webserver - no LUA, no AT, no Arduino

PostPosted: Mon Apr 13, 2015 10:17 am
by scargill
Thanks for that - some are using different SDK and I think the only one using the ESPRESSIF SDK is Martin's original with relays added, could be tricky to pull out the HTTP stuff but I'll have a go.

A shame Espressif didn't give proper examples - like a web server with web page and nothing else :-)

Thanks for the feedback.