Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading values: Add functions to read sensors #160

Open
pfiaux opened this issue Dec 7, 2018 · 0 comments
Open

Reading values: Add functions to read sensors #160

pfiaux opened this issue Dec 7, 2018 · 0 comments

Comments

@pfiaux
Copy link
Contributor

pfiaux commented Dec 7, 2018

Currently we expose 2 read functions:

  • getRecipes(NEEOBrain)
  • getRecipesPowerState(NEEOBrain)

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

  • We can get devices from the Brain
  • We can get sensors from Devices
  • We can get sensor values from sensors

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant