|
ESPHome 2026.11.0b6
|
Reassembles notifications (one chunk id byte followed by payload) into a message. More...
#include <daikin_madoka_protocol.h>
Public Member Functions | |
| ChunkResult | feed (std::span< const uint8_t > chunk) |
| std::span< const uint8_t > | message () const |
| void | reset () |
Protected Attributes | |
| std::array< uint8_t, MAX_CHUNKS *MAX_CHUNK_PAYLOAD > | data_ |
| std::array< uint8_t, MAX_CHUNKS > | chunk_sizes_ {} |
| uint8_t | message_size_ {0} |
Reassembles notifications (one chunk id byte followed by payload) into a message.
Chunks may arrive in any order: each is kept in the slot of its id, and the message is complete once chunk 0 is in and the chunks from 0 on add up to its length byte. After CHUNK_RESULT_COMPLETE, message() holds the message until reset() or the next feed().
Definition at line 44 of file daikin_madoka_protocol.h.
|
inline |
Definition at line 46 of file daikin_madoka_protocol.h.
|
inline |
Definition at line 85 of file daikin_madoka_protocol.h.
|
inline |
Definition at line 87 of file daikin_madoka_protocol.h.
|
protected |
Definition at line 95 of file daikin_madoka_protocol.h.
|
protected |
Definition at line 93 of file daikin_madoka_protocol.h.
|
protected |
Definition at line 96 of file daikin_madoka_protocol.h.