avaldebe / PyPMS

Data acquisition and logging for Air Quality Sensors with UART interface
https://avaldebe.github.io/PyPMS/
MIT License
29 stars 8 forks source link

Stop after a number of readings and "one-shot" mode #4

Closed avaldebe closed 4 years ago

avaldebe commented 4 years ago

From #1

  1. Allow readings on demand, returning readings in an appropriate structure, so that the timing and storing of data can be managed by the python app using PyPMS?

A more general use case would be to stop the data acquisition after a number successful observations. Two new options will be introduced:

avaldebe commented 4 years ago

As there is no need for a --strict flag (see #3), there is no need for a --one-shot flag either.