• 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(); ?

About

Avatar for user155657 @user155657 started