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

Moderator: igrr

User avatar
By brutzler
#25239 Hi,
using a nodemcu (with a lot of memory) as a webserver, my thoughts are to hold the webpage in the flash.
I know the way (arduino uno with ethernet-shield) to make a little webserver, holding the html-code on a sd-card. But I do not want to use one.
And I earlier made stuff like this:
Code: Select all          client.println(F("HTTP/1.1 200 OK"));
          client.println(F("Content-Type: text/html"));
          client.println(F("Connnection: close"));
          client.println()....;

But its very hard to "convert" a HTML-Page to this client.println structure.
Does anybody know an easy way?
My aim is, to setup a HTML-Page with a "normal" HTML-editor, and then convert it somehow easy to get it on the ESP8266.
User avatar
By martinayotte
#25240 Igor (IGRR) has almost finish to add new version of SPIFFS into ArduinoIDE, although it is not released yet, it is on GitHub.
This will allow to have plain HTML files stored into Flash, and your sketch will be able to load it using file i/o functions, and server can send them to client.
(I will try the GitHub code in the following days)
User avatar
By martinayotte
#25319 It is not bundled yet as an easy install, it is only available from GitHub, needing to merge files manually with ArduinoIDE, I've not get the chance to try it out yet (maybe over the weekend).
But if you are patient, IGRR will probably do a official release soon.