Hello
I would like to use esp8266 as web server and save files on 4mb esp8266 flash.
what is the best way to save static html/css/js files?
known way (dont want to write fs implementation on top of it):
f = require("Flash");
addr = 0x3C0000; // ESP8266_4MB flashArea[4]
f.write('ABCD',addr);
console.log(E.toString(f.read(1,addr)));
A
=undefined
console.log(E.toString(f.read(1,addr+1)))
B
=undefined
what is the best way to store files similar to "fs" module?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello
I would like to use esp8266 as web server and save files on 4mb esp8266 flash.
what is the best way to save static html/css/js files?
known way (dont want to write fs implementation on top of it):
f = require("Flash");
addr = 0x3C0000; // ESP8266_4MB flashArea[4]
f.write('ABCD',addr);
console.log(E.toString(f.read(1,addr)));
A
=undefined
what is the best way to store files similar to "fs" module?