Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By scargill
#14360 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?
User avatar
By alonewolfx2
#14365 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)
User avatar
By scargill
#14372 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.