Skip to content

Debuguear/AirQualityPMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install the library

Add the entry in hte platformio.ini file

[env]
lib_deps =
  https://github.com/Debuguear/AirQualityPMS.git

Usage

PMS5003T Sensor

#include "PMS5003T.h"

SoftwareSerial pmsSerial(2, 3);
debuguear::PMS5003T_PROCESSOR_T processor = debuguear::pms5003TProcessor(&pmsSerial);

void observerFunction(debuguear::AirQualityModel_PMS5003T* data) {
    Serial.println("Observer called!");
    Serial.println(data->toString());
}

void setup() {
    // setup your handlers.
    processor.addObserver(observerFunction);
}

void loop() {
    // Run the on each loop.
    processor.loop();
}

Run tests

pio test -e test

About

Arduino library to manage PMS sensors.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published