NEEOInc / neeo-sdk

NEEO Brain SDK
https://neeoinc.github.io/neeo-sdk/
MIT License
49 stars 17 forks source link

Reading values: Add functions to read sensors #160

Open pfiaux opened 5 years ago

pfiaux commented 5 years ago

Currently we expose 2 read functions:

As mentioned in #157 there's currently no easy way to read sensor values. Sensors should be readable implying:

One way might be to write this as a "chainable" api: getDevice(NEEOBrain, deviceId).getSensorValue(sensorId), but there's lots of different ways this could be written.