Skip to content

Ptelka/PMS7003

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PMS7003

Library for reading measurements from PMS7003 sensor.

PMS7003 sensor can be used in two modes:

  • active (default) in which sensor writes data through serial automatically
  • passive in which request command must be send to retrieve data

You can specify mode in the Sensor class constructor:

pms::Sensor<SoftwareSerial> pms7003(softwareSerial, pms::mode::active);

Or use the set_mode() method

pms::Sensor<SoftwareSerial> pms7003(softwareSerial);

pms7003.set_mode(pms::mode::active);

In the passive mode Sensor automatically sends request for data after invoking read method.

About

PMS7003 arduino library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages