[sensors] What if requested polling frequency is > time it takes to read data out of the sensor?

tobie has just created a new issue for https://github.com/w3c/sensors:

== What if requested polling frequency is > time it takes to read data
 out of the sensor? ==
For example, getting the temp and humidity readings out of certain 
cheap sensors can take up to 0.25 seconds.

Should this be reflected in `Sensor.frequency`? i.e. should: 
`Sensor.Temp({ frequency: 60 }).frequency` return `60` or `4` (4 Hz ==
 0.25s intervals)?

My feeling is that in shouldn't given that it's not observable by 
consumers if the only thing exposed is `onchanged` events.

It becomes very different if `ondata` events are exposed.

Either way, that might warrant a note in the spec, no?




See https://github.com/w3c/sensors/issues/23

Received on Wednesday, 3 June 2015 18:32:51 UTC