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

Non blocking read not working #28

Open
albfan opened this issue Aug 12, 2022 · 0 comments
Open

Non blocking read not working #28

albfan opened this issue Aug 12, 2022 · 0 comments

Comments

@albfan
Copy link

albfan commented Aug 12, 2022

I just found on this tutorial:

http://kstobbe.dk/2019/02/16/esp32-pms5003-bme280-mics6814-sensor-build/

using blocking read:

  if (pms.readUntil(data, 2*PMS::SINGLE_RESPONSE_TIME))

and this effectively allow me to read data from PMS5003.

Just to confirm it output data each 800ms:

Captura de pantalla de 2022-08-12 12-41-42

but I see all around people using non blocking read:

  if (pms.read(data))

This give me reads randomly (some reads after reset, no reads at all...)

Any background about what could be the reason? Just trying to figure out how to use the sensor properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant