Any plans to make the rest of the memory available to apps?
Yes :) Initially the idea was that I'd leave a big chunk free so that it could be used as needed (eg to store massive amounts of data) but I believe that StorageFile has pretty much negated the need for that now. Accessing the flash directly would always have been a hack as having 2 apps that used it at once would almost certainly have caused corruption.
Looks like my current inefficient data storage is filling up in about 8-10 hours of HR and Step counts.
I think that's something that could definitely be improved on! 1 megabyte in 10 hours is around 30 bytes every second! That's insanely detailed - like you're storing 30 bytes of data for every heartbeat!
I'm not sure what you're planning on the PC end of things to analyse this, but I'd imagine that storing heart rate and step count data for every minute of the day would be more than enough - and even if you stored that in text form, it'd be maybe 10*60*10 = 6kB, not 1MB :)
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.
Yes :) Initially the idea was that I'd leave a big chunk free so that it could be used as needed (eg to store massive amounts of data) but I believe that
StorageFile
has pretty much negated the need for that now. Accessing the flash directly would always have been a hack as having 2 apps that used it at once would almost certainly have caused corruption.I think that's something that could definitely be improved on! 1 megabyte in 10 hours is around 30 bytes every second! That's insanely detailed - like you're storing 30 bytes of data for every heartbeat!
I'm not sure what you're planning on the PC end of things to analyse this, but I'd imagine that storing heart rate and step count data for every minute of the day would be more than enough - and even if you stored that in text form, it'd be maybe 10*60*10 = 6kB, not 1MB :)