Replace 'gpspoilog.csv' with 'setting.json' because that file surely exists. But with the download button I get no data.
Ahh - this is your issue I think. There are two different types of file on Bangle.js:
require("Storage").write
require("Storage").open
You're trying to load the first type (setting.json) using code meant for the second type (gpspoilog.csv).
setting.json
gpspoilog.csv
Try using Util.readStorage("setting.json") instead and it'll probably be fine (the code normally used Util.readStorageFile)
Util.readStorage("setting.json")
Util.readStorageFile
@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.
Ahh - this is your issue I think. There are two different types of file on Bangle.js:
require("Storage").write
require("Storage").open
which can be appended toYou're trying to load the first type (
setting.json
) using code meant for the second type (gpspoilog.csv
).Try using
Util.readStorage("setting.json")
instead and it'll probably be fine (the code normally usedUtil.readStorageFile
)