-
• #2
Sun 2019.12.01
@Zyrotot, was this post as a follow up to a suggestion I made in this post?
Is the SD Card installed and accessible?
http://www.espruino.com/Reference#fs
http://www.espruino.com/File+IO
This should provide some insight:Home >> Other Boards >> ESP8266
[SOLVED] Is there anyway to have a filesystem-like facility on ESP8266?
What version is currently flashed?process.env
-
• #3
Well, fs is too much for the ESP8266.
- Use the Storage module to save pages and css (store_webdata.js)
- Load them in your app (in_your_app.js).
store_webdata.js
require("Storage").write("mypage", ` your page data `); require("Storage").write("mycss", ` your css data `);
in_your_app.js
mypage = require('Storage').read('mypage'); mycss = require('Storage').read('mycss');
On ESP8266 Storage is located in the memory mapped section, using this technic is fast and saves vars and heap.
- Use the Storage module to save pages and css (store_webdata.js)
I'm trying to load the fs module to create a webpage with CSS, but I can't install the module.
I receive the error: