There's no inbuilt database in Bangle.js, just files.
What data did you want to store in this database?
What I'd suggest is you use the require("Storage").open("file.csv","a").write("some data\n"); that you already came across to append the data each time the watch button is pressed.
Then when you're in contact with the website, you upload the contents of that file and then erase it, so next time you do it you're only uploading the stuff that changed since last time.
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 Ben,
There's no inbuilt database in Bangle.js, just files.
What data did you want to store in this database?
What I'd suggest is you use the
require("Storage").open("file.csv","a").write("some data\n");
that you already came across to append the data each time the watch button is pressed.Then when you're in contact with the website, you upload the contents of that file and then erase it, so next time you do it you're only uploading the stuff that changed since last time.