ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
uart_transport.h
Go to the documentation of this file.
1#pragma once
2
5#include <vector>
6#include "../uart.h"
7
8namespace esphome::uart {
9
21 public:
22 void loop() override;
23 float get_setup_priority() const override { return setup_priority::PROCESSOR; }
24
25 protected:
26 void write_byte_(uint8_t byte) const;
27 void send_packet(const std::vector<uint8_t> &buf) const override;
28 bool should_send() override { return true; };
29 size_t get_max_packet_size() override;
30 std::vector<uint8_t> receive_buffer_{};
33};
34
35} // namespace esphome::uart
A transport protocol for sending and receiving packets over a UART connection.
std::vector< uint8_t > receive_buffer_
size_t get_max_packet_size() override
void send_packet(const std::vector< uint8_t > &buf) const override
float get_setup_priority() const override
void write_byte_(uint8_t byte) const
Write a byte to the UART bus.
constexpr float PROCESSOR
For components that use data from sensors like displays.
Definition component.h:47