19 this->
matchers_.push_back({sensor, data, data_len});
Fixed-capacity circular buffer - allocates once at runtime, never reallocates.
void init(index_type capacity)
Allocate capacity - can only be called once.
Minimal static vector - saves memory by avoiding std::vector overhead.
Base class for all binary_sensor-type classes.
bool matches_(const EventMatcher &matcher) const
StaticVector< EventMatcher, UART_BINARY_SENSOR_COUNT > matchers_
void dump_config() override
FixedRingBuffer< uint8_t, 255 > buffer_
void add_event_matcher(binary_sensor::BinarySensor *sensor, const uint8_t *data, uint8_t data_len)
binary_sensor::BinarySensor * sensor