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: Alexander Shalamov via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 Oct 2016 18:44:47 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-257383265-1477939485-sysbot+gh@w3.org>
@tobie, sure, readings are immutable. My question was about expected 
behaviour for cached readings. As Rick mentioned, als.reading would be
 null, that is fine, we've implemented as spec says. However, spec 
doesn't specify what happens if developer caches reading and accesses 
it after stop is called.

Should we return data from the last reading before stop was called? Or
 maybe we should return initial values that are specified for 
SensorReadingInit dictionary?

GitHub Notification of comment by alexshalamov
Please view or discuss this issue at 
using your GitHub account
Received on Monday, 31 October 2016 18:44:53 UTC

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