Moderator: igrr
Pretty excited to be able to start using this. I would love to be able to separate my HTML from my code!
Thanks.
andres wrote:If I can help... I just tried to use Nodemcu for a small webserver but there are still a lot of problems... First, as You say, memory... 25Kbyte is far to small to save html pages. 2nd the 1470 byte buffer... 3d docs docs docs... I leave all that Nodemcu stuff and come here...
Concerning the 1470 bytes buffer, you can easily send big files by chunks with NodeMCU.
Have a look at https://github.com/marcoskirsch/nodemcu-httpserver (the coroutine elegant way) or https://github.com/CosmicMac/ESP8266-remote (1 global variable to keep the state of sending).
Last example is my own, and it was my first encounter with Lua and NodeMCU, so you should probably focus on the concept rather than on the code....