06-18-2019 13:57
06-18-2019 13:57
Hi all,
With great surprise I have seen that Exercise API and most importantly Scientific API have been introduced to efficiently calculate some features on the device. Apart from that, I was wondering if there was already a way to make use of a custom function to process the batched readings and use that function together with the functions given by the Scientific API.
Also, is there a way already available on how to invoke the Scientific API functions (or custom functions) every time that a batch has been collected?
My idea would be to calculate a bunch of features every time a batch is full, and get read of that batch to free the memory (and potentially send those features to the companion app)
Answered! Go to the Best Answer.
Best Answer06-18-2019 14:48
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.
06-18-2019 14:48
Yes, that's correct. Have you seen the sample app? https://github.com/Fitbit/sdk-scientific/
06-18-2019 14:02
06-18-2019 14:02
My current understanding is that the callback of the sensor would be called every N seconds, where N is that division of the batch parameter by the frequency parameter.
Is that correct?
Best Answer06-18-2019 14:48
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.
06-18-2019 14:48
Yes, that's correct. Have you seen the sample app? https://github.com/Fitbit/sdk-scientific/