W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2016

[sensors] Discrete vs continuous reporting modes

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 Jan 2016 23:43:26 +0000
To: public-device-apis@w3.org
Message-ID: <issues.opened-127332579-1453160605-sysbot+gh@w3.org>
tobie has just created a new issue for https://github.com/w3c/sensors:

== Discrete vs continuous reporting modes ==
Some platforms (e.g. Android) make that distinction and expose certain
 sensors as continuous (e.g. reporting data at fixed time intervals) 
others at distinct (reporting data when a specific threshold is 
reached).

This leaves a number of questions open:

- do all platforms which make the distinction are consistent across 
sensors?
- are some sensors exposed both ways on the same platform?
- how do we express that in JS? `DiscreteSensor` and 
`ContinuousSensor` that both inherit from `Sensor`?
- `onchange` (discrete) vs. `ondata` (continuous) events?

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/75 using your GitHub account
Received on Monday, 18 January 2016 23:43:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:07 UTC