Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom function on batched readings

ANSWERED

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)

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Yes, that's correct. Have you seen the sample app? https://github.com/Fitbit/sdk-scientific/

View best answer in original post

Best Answer
2 REPLIES 2

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 Answer
0 Votes

Yes, that's correct. Have you seen the sample app? https://github.com/Fitbit/sdk-scientific/

Best Answer