ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::pioneer_wt::AttributeReader Class Referencefinal

Walks the attribute list in a status body. Stops at the first ID whose size is unknown. More...

#include <pioneer_wt_protocol.h>

Public Member Functions

 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.
 

Protected Attributes

const uint8_t * data_
 
size_t len_
 
size_t pos_ {0}
 
uint32_t value_ {0}
 
uint16_t id_ {0}
 
bool unknown_ {false}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AttributeReader()

esphome::pioneer_wt::AttributeReader::AttributeReader ( const uint8_t * data,
size_t len )
inline

Definition at line 64 of file pioneer_wt_protocol.h.

Member Function Documentation

◆ id()

uint16_t esphome::pioneer_wt::AttributeReader::id ( ) const
inline

Definition at line 67 of file pioneer_wt_protocol.h.

◆ 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

True when the walk stopped early on an ID of unknown size.

Definition at line 70 of file pioneer_wt_protocol.h.

◆ value()

uint32_t esphome::pioneer_wt::AttributeReader::value ( ) const
inline

Definition at line 68 of file pioneer_wt_protocol.h.

Field Documentation

◆ data_

const uint8_t* esphome::pioneer_wt::AttributeReader::data_
protected

Definition at line 73 of file pioneer_wt_protocol.h.

◆ id_

uint16_t esphome::pioneer_wt::AttributeReader::id_ {0}
protected

Definition at line 77 of file pioneer_wt_protocol.h.

◆ len_

size_t esphome::pioneer_wt::AttributeReader::len_
protected

Definition at line 74 of file pioneer_wt_protocol.h.

◆ pos_

size_t esphome::pioneer_wt::AttributeReader::pos_ {0}
protected

Definition at line 75 of file pioneer_wt_protocol.h.

◆ unknown_

bool esphome::pioneer_wt::AttributeReader::unknown_ {false}
protected

Definition at line 78 of file pioneer_wt_protocol.h.

◆ value_

uint32_t esphome::pioneer_wt::AttributeReader::value_ {0}
protected

Definition at line 76 of file pioneer_wt_protocol.h.


The documentation for this class was generated from the following files: