14 static const uint8_t MAX_TAG_SIZE = 64;
15 static const uint16_t MAX_VAL_SIZE = 256;
16 static const uint16_t MAX_BUF_SIZE = 2048;
17 static const uint16_t MAX_TIMESTAMP_SIZE = 14;
29 void setup()
override;
30 void update()
override;
31 void dump_config()
override;
32 std::vector<TeleInfoListener *> teleinfo_listeners_{};
38 char buf_[MAX_BUF_SIZE];
39 uint32_t buf_index_{0};
40 char tag_[MAX_TAG_SIZE];
41 char val_[MAX_VAL_SIZE];
42 char timestamp_[MAX_TIMESTAMP_SIZE];
49 bool read_chars_until_(
bool drop, uint8_t c);
50 bool check_crc_(
const char *grp,
const char *grp_end);
51 void publish_value_(
const std::string &
tag,
const std::string &
val);
This class simplifies creating components that periodically check a state.
Implementation of SPI Controller mode.
virtual void publish_val(const std::string &val)