I thought it was a 'driver' of some sort that enabled Web Bluetooth apps running from Chrome or Safari
It would be great if that was the case, but I think iOS is locked down enough that it isn't possible :(
That's odd about the code... Maybe you could try changing getData so it just did saveFile("blah blah", "myfile.txt") and see if that works?
I guess if not it might be something to do with WebBLE blocking file saves (in which case you could file an issue on WebBLE's GitHub page for this).
A workaround might be to actually load the data into an online spreadsheet directly... If you mashed in the code from https://developers.google.com/sheets/api/quickstart/js you might actually be able to get the web app to automatically add the new energy data to a Google Sheets spreadsheet, without the download step
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.
It would be great if that was the case, but I think iOS is locked down enough that it isn't possible :(
That's odd about the code... Maybe you could try changing
getData
so it just didsaveFile("blah blah", "myfile.txt")
and see if that works?I guess if not it might be something to do with WebBLE blocking file saves (in which case you could file an issue on WebBLE's GitHub page for this).
A workaround might be to actually load the data into an online spreadsheet directly... If you mashed in the code from https://developers.google.com/sheets/api/quickstart/js you might actually be able to get the web app to automatically add the new energy data to a Google Sheets spreadsheet, without the download step