jgosmann / mh-z19c

Pure rust implementation to read out the Winsen MH-Z19C CO2 sensor.
https://docs.rs/mh-z19c/
Apache License 2.0
2 stars 2 forks source link

Examples #1

Closed d3v3lop3rDE closed 2 years ago

d3v3lop3rDE commented 3 years ago

Hello,

could you please provide a more detailed example and the used UART implementation? Currently Iam using the rppal_w_frontend Library for the Uart Connection (which uses linux-embedded-hal as backend). So Iam expieriencing errors: 106 | let mut sensor = MhZ19C::new(uart); | ^^^^^^^^^^^^^^^^^ the traitembedded_hal::serial::Writeis not implemented forUart Thank you!

jgosmann commented 3 years ago

Did you enable the hal feature? (cp. documentation)

jgosmann commented 3 years ago

Also cp. here and here

jgosmann commented 2 years ago

Closing this as stale, feel free to reopen if you still have an issue.