Commit graph

6 commits

Author SHA1 Message Date
Matthew Dawson
d3bcc13749
Fix battery quantity/size reporting
The API for reporting information requires a pointer to the data value,
and cannot deal with a constant directly.  The current quantity/size
returned by the device are random values from memory.

Instead move these values into the prst_batt_attrs_t struct and
set their values in prst_zb_attrs_init.
2023-02-02 00:43:13 -05:00
rbaron
c567408861 Fix prst_zb_attrs.c format 2022-12-19 09:33:18 +01:00
Ole Odendahl
580f425b01
Added hardware version config value. 2022-12-18 17:15:58 +01:00
Ole Odendahl
ac8677f3e8
Renamed basic cluster attributes to comply with library defaults. 2022-12-18 17:12:25 +01:00
Ole Odendahl
61729aa81a
Made more basic attributes compile time configurable. 2022-12-16 12:16:42 +01:00
rbaron
cb6ed73691 Add battery percentage computation 2022-12-09 19:02:55 +01:00