-
• #2
Fri 2019.11.29
Hi @sebi, another had this same question just two weeks ago. Some ideas 'push-ing' one line at a time:
http://forum.espruino.com/conversations/340770/#comment14982767
https://www.espruino.com/simple_data_logger -
• #3
A non-Espruino way (not verified nor an attempt at coding)
Use the web-based Puck.js
Using:
http://www.espruino.com/Quick+Start+BLE#puckjs
locate heading 'Once Web Bluetooth is set up':
https://www.puck-js.com/goBuild a Html web page that accesses the device. Move the data to the browser object along with 'localStorage/globalStorage' then with the 'fs' object, store to the local file system.
-
• #5
Puck.eval
via in Web Bluetooth may work: https://www.espruino.com/Web+Bluetooth#reading-from-puck-jseg. https://github.com/gfwilliams/MakeTomatoes/blob/master/index.html#L24
But you'd need to be sure that each file you were reading was small enough that it could be loaded into RAM and 'stringified', or that method wouldn't work and you'd have to do it manually.
Another option is I'll be adding storage read/write functionality to the Web IDE soon so you'll be able to click 'download' through there...
-
• #6
Thank you. Can't wait to see the new Web IDE in action.
-
• #7
Sat 2019.11.30
Using the example provided in first link in post #5 and, . . .
Html5 FileSytem API
https://stackoverflow.com/questions/12023858/how-to-read-write-local-files-through-a-web-page
Several important launching point links there. Most of the code that is needed is in the Html5Rocks link.
I am building a data logger.
Using the storage library I am writing some data into a file onto my Espruino board (Puck.js).
How to retrieve this file to my computer?
(It is too big to do some copy/paste over the REPL.)
Thx