Skip to content

Non blocking read not working #28

Description

@albfan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions