0a35e9e8b4
The QN-KS sends 18-byte frames on FFF1 with opcode 0x10: [0x10][0x12=len][...][flags][weight_hi][weight_lo][...][crc] Weight is u16BE at bytes 9-10 in grams (1g resolution). Stable flag is bit 3 of byte[8] (0xF8=stable, 0xF0=settling). Checksum = sum(bytes[0..16]) mod 256. The generic parser was reading byte[1]=0x12=18 as '18 grams' (the packet length field), which is why it always showed 18g. Added parseQNFood() with CRC validation, detected before generic fallback. Also added AE00/AE02 UUIDs (secondary notifiable service on QN-KS).
21 KiB
21 KiB