W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2015

Re: [sensors] Address questions around exposing high-level, low-level, and uncalibrated sensors

From: pablochacin via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jun 2015 15:57:22 +0000
To: public-device-apis@w3.org
Message-ID: <issue_comment.created-112859591-1434556641-sysbot+gh@w3.org>
@tobie  In our current system, we model sensors as providing "maps" of
 variables. That is, the event don't have a single `sensorReading()` 
method, but a generic `getMeasurement(String variable)` method. In 
that way, we don't have to specialize sensor interfaces to access the 
different variables.  

Regarding performance, the higher penalty is for the event meta data 
(time stamp, location, attributes) and for the connection/transmission
 overhead, more than for transferring a few more bytes of data. 

-- 
GitHub Notif of comment by pablochacin
See https://github.com/w3c/sensors/issues/51#issuecomment-112859591
Received on Wednesday, 17 June 2015 15:57:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:05 UTC