unfinished

This commit is contained in:
GrKoR
2025-11-25 18:59:00 -08:00
parent fa3bdf21db
commit 577eac89c8
7 changed files with 484 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include "esphome/core/component.h"
#include "esphome/components/uart/uart.h"
#define AC_BUFFER_SIZE 35
using namespace esphome::uart;
namespace esphome
{
namespace aux_ac
{
class AuxUart : public UARTDevice
{
public:
AuxUart() = delete;
explicit AuxUart(UARTComponent *parent) : UARTDevice(parent) {}
~AuxUart() = default;
void send_frame(const std::vector<uint8_t> &frame);
bool read_frame(std::vector<uint8_t> &frame);
protected:
// Internal buffer for incoming data
uint8_t _data[AC_BUFFER_SIZE];
};
} // namespace aux_ac
} // namespace esphome