W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2017

Re: [sensors] Call 'onchange' on a Senor instance considering its own frequency hint

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 May 2017 09:43:34 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-304239199-1495791812-sysbot+gh@w3.org>
Is missing from this resolution is what I pointed out in https://github.com/w3c/sensors/issues/209#issuecomment-304221680. That is: does an update to the shared reading trigger each sensor to check if it's time for them to update their own client with a new reading, or does each sensor simply poll the shared reading at regular intervals?

In the former, what happens if no new reading arrives in the shared buffer before the time interval of a given sensor elapses. Is the firing an onchange event skipped? Is another event fired instead (e.g. missedupdate)?

In the latter, what happens when the shared reading hasn't been updated since the last time?

GitHub Notification of comment by tobie
Please view or discuss this issue at https://github.com/w3c/sensors/issues/152#issuecomment-304239199 using your GitHub account
Received on Friday, 26 May 2017 09:43:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:53 UTC