Skip to content

Conversation

@elmarx
Copy link
Contributor

@elmarx elmarx commented Apr 14, 2021

Hey, I just got a AirCO2ntrol mini a couple of days ago.
It did not work with the watch example, I always got the "invalid message" error.

I checked the nodejs implementation and it worked, so I looked deeper into the code, and it looks as if newer Aircontrol minis (and given the comment in the node project also the "coach" model) do not do the pseudo-encryption stuff.
I did not find any documentation/reference besides huhamhire/node-co2-monitor@21458d4.

I implemented the same logic (skipping decryption if the "magic byte" is already present) and now reading the sensor values simply works (and of course matches the values shown on the display).

@lnicola
Copy link
Owner

lnicola commented Apr 14, 2021

Thanks! I'll take a better look tomorrow, right now it seems to me that it can't work never mind.

@lnicola lnicola merged commit 8182b04 into lnicola:master Apr 15, 2021
@lnicola
Copy link
Owner

lnicola commented Apr 16, 2021

I just published a new version to crates.io, sorry for the delay.

@elmarx
Copy link
Contributor Author

elmarx commented Apr 19, 2021

Wow, hey thanks for your work!
I would have fixed the typos in the README, but I was busy the last days, but I see you already did this… and even released a new version 👍

You saved me a lot of time with this crate(s), thanks!

@elmarx elmarx deleted the skip-decryption branch April 19, 2021 21:57
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.

2 participants