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: Mikhail Pozdnyakov via GitHub <sysbot+gh@w3.org>
Date: Fri, 26 May 2017 10:32:46 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-304248682-1495794765-sysbot+gh@w3.org>
> Is missing from this resolution is what I pointed out in #209 (comment). 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?

The first, once shared reading is updated each of the Sensor instances either sends updates immediately or schedules update sending.

> In the former, what happens if no new reading arrives in the shared buffer before the time interval of a given sensor elapses.

Nothing, in this case continue waiting for shared reading update and notify immediately

Please see https://github.com/w3c/sensors/pull/210

GitHub Notification of comment by pozdnyakov
Please view or discuss this issue at https://github.com/w3c/sensors/issues/152#issuecomment-304248682 using your GitHub account
Received on Friday, 26 May 2017 10:32:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:23 UTC