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

Add PVVX broadcaster #200

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add PVVX broadcaster #200

wants to merge 2 commits into from

Conversation

nerdb0y
Copy link

@nerdb0y nerdb0y commented Apr 28, 2024

This pull request adds the broadcaster support for the PVVX firmware of Xiaomi devices.

PVVX is a fork of the ATC firmware, which supplies more detailed information in the broadcasts without needing to connect to the device.

main/broadcasters.c Outdated Show resolved Hide resolved
pvvx_temp_hum_t *pvvx_data = pvvx_temp_hum_data_get(adv_data,
adv_data_len, &len);

if (len < sizeof(pvvx_temp_hum_t) ||
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

< or !=?
Are you expecting variable length messages?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not expecting variable length, but was following convention of ATC and other broadcasters. Happy to change if you'd prefer.

@nerdb0y nerdb0y requested a review from shmuelzon April 29, 2024 22:34
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.

None yet

2 participants