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

refactor: use repeated fields in EnvironmentMetrics #400

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrekir
Copy link
Member

suggestion for handling multiple sensors or sensors with multiple channels from: #399

opted not to add a separate oneOf since using all fields, including 8 repeated WeatherSensor and PowerSensor each, takes 110 bytes (out of max 237), so there is plenty of room to expand before needing to split into a separate packet.

@caveman99
Copy link
Sponsor Member

Good one, but needs changes on the firmware side and all apps too.

@thebentern thebentern added the 3.0 label Apr 17, 2024
@ianmcorvidae
Copy link
Contributor

Just as a note for when we get back to this for 3.0, we should make sure that the optional stuff added by #545 gets kept for these, assuming that all holds up. That should, hopefully, make it possible to distinguish between missing values and values truly set to 0, which is especially useful for things like temperature that can be actually-0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants