avr/apps/stats: send VALUE_REPORT messages instead of individual stats messages.

this makes it easier to add some more stats later and it removes some
messages.
This commit is contained in:
Martin Preuss
2025-05-28 00:47:19 +02:00
parent ba434d88a2
commit 042db13994
5 changed files with 138 additions and 14 deletions

View File

@@ -20,6 +20,22 @@
.equ AQHOME_VALUETYPE_MOTION = 6
.equ AQHOME_VALUETYPE_CO2 = 7
.equ AQHOME_VALUETYPE_TVOC = 8
.equ AQHOME_VALUETYPE_STATS = 9
; Value Ids
.equ AQHOME_VALUEID_STATS_PACKETS_IN = 0xe0
.equ AQHOME_VALUEID_STATS_PACKETS_OUT = 0xe1
.equ AQHOME_VALUEID_STATS_ERRS_CONTENT = 0xe2
.equ AQHOME_VALUEID_STATS_ERRS_IO = 0xe3
.equ AQHOME_VALUEID_STATS_ERRS_NOBUF = 0xe4
.equ AQHOME_VALUEID_STATS_ERRS_COLLISIONS = 0xe5
.equ AQHOME_VALUEID_STATS_ERRS_BUSY = 0xe6
.equ AQHOME_VALUEID_STATS_HEAP_USED = 0xe7
.equ AQHOME_VALUEID_STATS_HEAP_FREE = 0xe8