13static const uint8_t MAX_TAG_SIZE = 64;
14static const uint16_t MAX_VAL_SIZE = 256;
15static const uint16_t MAX_BUF_SIZE = 2048;
16static const uint16_t MAX_TIMESTAMP_SIZE = 14;
28 void setup()
override;
36 uint8_t
buf_[MAX_BUF_SIZE];
48 bool check_crc_(
const uint8_t *grp,
const uint8_t *grp_end);
This class simplifies creating components that periodically check a state.
void publish_value_(const std::string &tag, const std::string &val)
bool check_crc_(const uint8_t *grp, const uint8_t *grp_end)
char timestamp_[MAX_TIMESTAMP_SIZE]
TeleInfo(bool historical_mode)
void register_teleinfo_listener(TeleInfoListener *listener)
std::vector< TeleInfoListener * > teleinfo_listeners_
enum esphome::teleinfo::TeleInfo::State STATE_OFF
uint8_t buf_[MAX_BUF_SIZE]
void dump_config() override
bool read_chars_until_(bool drop, uint8_t c)
virtual void publish_val(const std::string &val)