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

New Sensor Structure #52

Open
oscgonfer opened this issue Jul 27, 2023 · 0 comments
Open

New Sensor Structure #52

oscgonfer opened this issue Jul 27, 2023 · 0 comments
Labels
enhancement New feature or request sensors Sensor integration

Comments

@oscgonfer
Copy link
Contributor

oscgonfer commented Jul 27, 2023

A different way of handling the sensor implementations was started to make things easier and try to homogenize the whole structure. Ideally benefits of this new approach (in branch https://github.com/fablabbcn/smartcitizen-kit-21/tree/channels) are:

  1. Sensor objects are created in runtime, not consuming RAM memory in principle
  2. Indifferent if the sensor is on the Urban Board I2C bus or on the Aux Port I2C bus
  3. Cleaner and more homogeneous implementation

As a first step, this new implementation would keep the same sensor ids as usual, and test the new data model, fablabbcn/smartcitizen-api#241 with the current implementation or this new structure.

Further down the line, the idea is to send sensor ids with a "hash" composed of different variables to be documented, such as the current sensor id, and the bus in which the sensor is located. This would allow a mux to have duplicated sensors and each of them be uniquely identifiable.

@oscgonfer oscgonfer added the enhancement New feature or request label Jul 27, 2023
@oscgonfer oscgonfer mentioned this issue Jul 27, 2023
11 tasks
@oscgonfer oscgonfer added the sensors Sensor integration label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sensors Sensor integration
Projects
None yet
Development

No branches or pull requests

1 participant