Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

byte packet[] content #3

Open
LZsolt75 opened this issue Oct 23, 2021 · 1 comment
Open

byte packet[] content #3

LZsolt75 opened this issue Oct 23, 2021 · 1 comment

Comments

@LZsolt75
Copy link

As I compare your code with tomasvilda's code I have realised that the array packet[] in your code has different content than the array fullTray[] in tomasvilda's code. Not only the values of the elements but the length of the array is also diffierent.
Why is this difference? In your code only the 11th an 42nd element is overwritten.
And also a notice: It would be helpful if you write somewhere what kind of board is the code for. I am asume that it is for arduino, while tomasvilda's is for Attiny85.

@prj
Copy link

prj commented Sep 30, 2022

For digispark (ATTiny85) I made a fork here:
https://github.com/prj/xiaomi-humidifier-water-sensor-digispark

The packet used in this project works just fine, I have two of these humidifers and it worked for both.
42nd element is checksum.

thomasvilda captured everything - initial handshake as well, not just the recurring data packet, whereas the author of this repo realized that it is enough to just send the data packet and omit everything else, and the top board is still happy with that.

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

No branches or pull requests

2 participants