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

Re: [ambient-light] What illuminance value should be reported for stopped sensor?

From: Tobie Langel via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 Oct 2016 22:57:54 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-257444861-1477954672-sysbot+gh@w3.org>
> I think the language shouldn't use the word "current", for two 

That's not a term that's exposed to developers, and it's defined in 
the spec. But I'm happy to change if you find it confusing.

> W/r to `sensor.read/start()`: `sensor.read()` would have its own 
baggage, specifically that devs might expect it to return a value, 
which it wouldn't (and definitely shouldn't).

No, I meant sensor.read() as a way to access the latest reading 
instead of `Sensor.reading` as @alexshalamov brought up some potential
 developer confusion about the behavior of `Sensor.reading`. Note I'm 
not advocating this particular change, or any change at all, just 
using `.read()` as a way to start the conversation, like I could have 
used: `sensor.getLatestReading();`

GitHub Notification of comment by tobie
Please view or discuss this issue at 
using your GitHub account
Received on Monday, 31 October 2016 22:58:00 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:52 UTC