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: Rick Waldron via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 Oct 2016 17:50:36 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-257367403-1477936233-sysbot+gh@w3.org>
> ```js
let als = new AmbientLightSensor();
let cachedReading = als.reading;
// ?

> At the moment I've implemented it to return 0.0, is this expected 

My understanding is that `als.reading` is actually still `null`, 
because it won't be updated in the same turn. @tobie unless that's no 
longer the case?

GitHub Notification of comment by rwaldron
Please view or discuss this issue at 
using your GitHub account
Received on Monday, 31 October 2016 17:50:42 UTC

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