Closed pelikhan closed 3 years ago
Is it possible to specify the preferred polling rate for a given sensor? Also error -/+
There is currently no error margin handling.
What polling rate would you like? Eg what's the rate for say thermometer or accelerometer? We could slap typical min/max on streaming interval registers.
BTW, I think these issues should be on the jacdac repo.
cc @jamesadevine
Min polling interval would be enough. Thermometer (10s) vs accelerometer (20ms). max could be considered the cut-off frequency which also also to create a low-pass filter. Do the device filter data by default?
This discussion relates to the service specification: https://microsoft.github.io/jacdac-ts/reference/service-specification/
We will use an optional const register.
Too much polling or too little