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

Make sure SensorDriver can only post Measures for Sensors it is taking care of. #1

Open
3 tasks
benjaminplanche opened this issue Apr 9, 2015 · 0 comments
Assignees

Comments

@benjaminplanche
Copy link
Owner

Idea:

  • In Sensor.create, generate a closure function such as:

    thisSensor = @
    createMeasureForThisSensor = (data) -> thisSensor.createMeasure(data)
  • Pass this to SensorDriver .add, so that the driver can use it.

  • Delete controller method and route to create measure otherwise.

Not sure if such a solution is working -> test.

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

No branches or pull requests

1 participant