Walks the attribute list in a status body. Stops at the first ID whose size is unknown.
More...
#include <pioneer_wt_protocol.h>
|
| | AttributeReader (const uint8_t *data, size_t len) |
| |
| bool | next () |
| | Moves to the next attribute. Returns false at the end of the body or at an unknown ID.
|
| |
| uint16_t | id () const |
| |
| uint32_t | value () const |
| |
| bool | stopped_on_unknown () const |
| | True when the walk stopped early on an ID of unknown size.
|
| |
Walks the attribute list in a status body. Stops at the first ID whose size is unknown.
Definition at line 62 of file pioneer_wt_protocol.h.
◆ AttributeReader()
| esphome::pioneer_wt::AttributeReader::AttributeReader |
( |
const uint8_t * | data, |
|
|
size_t | len ) |
|
inline |
◆ id()
| uint16_t esphome::pioneer_wt::AttributeReader::id |
( |
| ) |
const |
|
inline |
◆ next()
| bool esphome::pioneer_wt::AttributeReader::next |
( |
| ) |
|
Moves to the next attribute. Returns false at the end of the body or at an unknown ID.
Definition at line 57 of file pioneer_wt_protocol.cpp.
◆ stopped_on_unknown()
| bool esphome::pioneer_wt::AttributeReader::stopped_on_unknown |
( |
| ) |
const |
|
inline |
◆ value()
| uint32_t esphome::pioneer_wt::AttributeReader::value |
( |
| ) |
const |
|
inline |
◆ data_
| const uint8_t* esphome::pioneer_wt::AttributeReader::data_ |
|
protected |
◆ id_
| uint16_t esphome::pioneer_wt::AttributeReader::id_ {0} |
|
protected |
◆ len_
| size_t esphome::pioneer_wt::AttributeReader::len_ |
|
protected |
◆ pos_
| size_t esphome::pioneer_wt::AttributeReader::pos_ {0} |
|
protected |
◆ unknown_
| bool esphome::pioneer_wt::AttributeReader::unknown_ {false} |
|
protected |
◆ value_
| uint32_t esphome::pioneer_wt::AttributeReader::value_ {0} |
|
protected |
The documentation for this class was generated from the following files: