Skip to content

add UART sensor thread with passive/active modes and frame parser#2

Open
Sebenicz wants to merge 1 commit intomainfrom
plantower-driver
Open

add UART sensor thread with passive/active modes and frame parser#2
Sebenicz wants to merge 1 commit intomainfrom
plantower-driver

Conversation

@Sebenicz
Copy link
Collaborator

This PR introduces/updates the sensor module to support periodic particulate measurements over UART.
What changed:

  • Added a dedicated sensor thread that:
  • supports active reads for short periods and passive request/response + averaging for longer periods
  • handles wake/sleep control and exposes a stop channel for graceful shutdown
  • Added/updated a PMS frame parser with checksum validation and extraction of PM1.0/PM2.5/PM10 (ATM) readings

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

Successfully merging this pull request may close these issues.

1 participant

Comments