How do I read the actual available space out of that command?
You just need process.memory().free. On Espruino boards each var is 16 bytes, so just multiply the value by 16 to get bytes.
process.memory().free
And .usage is your actual program size
.usage
@Gordon 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.
You just need
process.memory().free
. On Espruino boards each var is 16 bytes, so just multiply the value by 16 to get bytes.And
.usage
is your actual program size