I just realized the git repository was not public, so I have changed the settings to make it publicly accessible.
Settings for gitlab, repository needs to be changed to "Everyone" apparently:
https://gitlab.com/thmjpr/Air_Quality/
The code is written to work with PMS7003, and the SDS021 support is in there as well, but it won't auto switch. So I change this line with the class definition:
There must be a better way to do it in C++ but haven't figured it out.
One way would be to have a master "particulate" class that searches for available sensors, and then calls the appropriate class depending on what was detected on startup. But it seems a bit redundant, as all functions would be copied to that class.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.