Hi clausinus,
use require("ESP8266").getFreeFlash(); to get a array of objects with addr and length like this
require("ESP8266").getFreeFlash();
// sample output require("ESP8266").getFreeFlash() =[ { "area": 487424, "length": 4096 }, { "area": 524288, "length": 4096 }, { "area": 1011712, "length": 36864 } ]
@MaBe started
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.
Hi clausinus,
use
require("ESP8266").getFreeFlash();
to get a array of objects with addr and length like this