Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Script Causes PMS Sensor Buffering #23

Open
jspauley opened this issue Jul 24, 2023 · 1 comment
Open

Script Causes PMS Sensor Buffering #23

jspauley opened this issue Jul 24, 2023 · 1 comment

Comments

@jspauley
Copy link

jspauley commented Jul 24, 2023

Hi! Hope you are well! 😄

I was recently following the mqtt-all.py script and tutorials from the main Pimoroni repo, and found an issue you might be interested in. I've proposed a fix in the main repo here.

TL;DR: Using time.sleep(args.interval) inside the main loop with a PMS5003 sensor connected results in the sensor buffering it's readings. The longer the device is running, the more buffered the data gets, resulting in very delayed readings being sent over MQTT.

Thought you might be interested in this fix! Your tutorials and this particular script have been very helpful to me, so thank you!

@robmarkcole
Copy link
Owner

@jspauley many thanks for raising this issue and identifying the solution. I will archive this repo and point users to the official repo

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

No branches or pull requests

2 participants