Skip to content

WH0290 minor improvement suggestion #1638

Closed
@gdt

Description

@gdt

@harpchad @peteakalad Thanks for your WH0290 work.

Minor suggestions:

  • b[0] is not checked or printed. It seems like it is family and is supposed to be 0x8d. I would think that either it should be printed, or it should be checked and fail the match if not, but I may be missing something. (In general I am a fan of for every bit, either insist it have some value to match, or if not decode it, even if it's just putting the bit in an unknown field.)
  • The upper bit of battery MSB is not checked or printed. Would suggest "ub1".
  • The bitbench example shows "Bat_MSB:1d Bat_LSB:2d" but that is 110 or 6 which is 1.2, and that seems odd and not matching what is supposed to be.
  • Something seems strange with the "PM10" field. In my data (only a bit so far), it seems that PM10 = PM2.5 +1, and I see that in the examples. I wonder if that's another form of coding and not PM10, or if people are seeing different values. I don't have a crisp suggestion for figuring this out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions