- From: Tobie Langel via GitHub <sysbot+gh@w3.org>
- Date: Mon, 21 Mar 2016 18:20:25 +0000
- To: public-device-apis@w3.org
For the record, here's how subscribing to sensor polling works: ```js let s = new FooSensor() s.start(); s.onchange = e => console.log(e.reading); ``` and here's how you'd get a single reading: ```js new FooSensor().read().then(reading => console.log(reading)); ``` -- GitHub Notification of comment by tobie Please view or discuss this issue at https://github.com/w3c/sensors/issues/95#issuecomment-199411567 using your GitHub account
Received on Monday, 21 March 2016 18:20:26 UTC