Daniel Damelin
unread,Apr 1, 2022, 6:06:56 PM4/1/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web-bluetooth, Reilly Grant, web-bluetooth, Daniel Damelin, Jack Hsieh
So I figured out that one can use an event model where the device signals a
value changed event or one can poll the device using a timer. We had been using a timer. What I discovered is that the device was batching up a view sensor values at a time and then triggering a few
value changed events in quick succession. Then it would wait 0.1 sec and send the next batch of values. This 0.1 sec interval between batches of values caused the polling strategy to only see a new value every 0.1 sec rather than the true sampling frequency the device could generate. Thanks for your suggestions. It helped me go looking for the potential of update notifications rather than timed polling for getting sensor values.