09-20-2018 09:02
09-20-2018 09:02
Hi
I have made a clockface with barometric data showing a graph with 12 bars.
every 30min a pressure reading is pushed into an array, and the last 12 values (6 hour trend)
in the array is used to draw the graph.
Any ideas how i can store the last 12 readings in a flat file, in case the clockface restarts and my array
is nullified?
br,
Chris
Best Answer09-20-2018 09:06
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
09-20-2018 09:06
Yep, you can persist the data using the filesystem api.
I'd recommend CBOR format. https://dev.fitbit.com/build/guides/file-system/
Best Answer09-21-2018 07:05
09-21-2018 07:05
Hi Jon
Thx for your reply.
I bumped into another issue, i thought the clockface app runs in the background
when you switch to another app, it does not 😞 that makes the barometric pressure sensor useless if i also want to use my versa for other things.
Chris
Best Answer