var getData = require('Storage').read('rawData.csv\1');
This only reads chunk 1 of the Storage file, see here for an explanation about those.
You probably want something like this:
var dataFile = require('Storage').readopen('rawData.csv', 'r');
var line = dataFile.readLine();
while (line != undefined) {
Bluetooth.println(`<data>\n${line}\n</data>`);
line = dataFile.readLine();
}
dataFile.erase();
Also:
var memory = require("Storage").getStats();
Shouldn't this be var memory = require("Storage").getFree(); ?
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.
This only reads chunk 1 of the Storage file, see here for an explanation about those.
You probably want something like this:
Also:
Shouldn't this be
var memory = require("Storage").getFree();
?