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

First iteration of air_quality API based on the temperature API #16

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Mar 27, 2023

  1. First iteration of air_quality API

    I've written the base of air_quality API, next I will add a fake sensor for
    testing the API, including unit testing for the fake sensor
    RaresCon committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    70467b8 View commit details
    Browse the repository at this point in the history
  2. Modified the API to include the suggested changes

    I've removed the `AirQualityListener` and used a `Cell<Option<(u32,)>>`
    instead. I've added a private Enum for choosing what kind of data reading
    to execute, a private method that uses this Enum and two other public
    functions as wrappers.
    RaresCon committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    47f5278 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. Added fake AirQuality driver

    I've added a fake `AirQuality` driver and some integration tests for it.
    Every test is passed and should reflect the behaviour of the real driver.
    RaresCon committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    bfd3784 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. Added unittests for AirQuality API

    I've added unittests for each function of the AirQuality API, all pass
    as expected. Documentation for the API will be part of the next commit.
    RaresCon committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    8fe570b View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Added suggested changes to AirQuality API

    Added the suggested changes, including the `read_sync` function that
    return a tuple of both CO2 and TVOC values. Improved the unittests for the
    fake driver and added a unittest for the new function.
    RaresCon committed Apr 13, 2023
    Configuration menu
    Copy the full SHA
    5afcd38 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Configuration menu
    Copy the full SHA
    6e82822 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2023

  1. Configuration menu
    Copy the full SHA
    44b5247 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. Added requested changes

    I've added back the dedicated listener for this API
    and rewritten the returning errors of some functions.
    RaresCon committed May 16, 2023
    Configuration menu
    Copy the full SHA
    6873b50 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2023

  1. Added documentation and fixed CI bug

    I've added some documentation for the functions of the API
    and fixed an inclusion bug of the API in `tests.rs` that
    made the CI fail.
    RaresCon committed May 18, 2023
    Configuration menu
    Copy the full SHA
    35cd6b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04f500a View commit details
    Browse the repository at this point in the history