6 #include <Appliance/ApplianceBase.h> 7 #include <Helpers/Logger.h> 39 size_t write(uint8_t data)
override {
43 size_t write(
const uint8_t *data,
size_t size)
override {
54 static_assert(std::is_base_of<dudanov::midea::ApplianceBase, T>::value,
55 "T must derive from dudanov::midea::ApplianceBase class");
59 this->base_.setStream(&this->stream_);
61 dudanov::midea::ApplianceBase::setLogger(
62 [](
int level,
const char *tag,
int line,
const String &format, va_list args) {
67 #ifdef USE_REMOTE_TRANSMITTER 74 void set_period(uint32_t ms) { this->base_.setPeriod(ms); }
80 void setup()
override { this->base_.setup(); }
81 void loop()
override { this->base_.loop(); }
84 return this->base_.getAutoconfStatus() != dudanov::midea::AutoconfStatus::AUTOCONF_PROGRESS;
89 virtual void on_status_change() = 0;
94 #ifdef USE_REMOTE_TRANSMITTER 102 #endif // USE_ARDUINO void set_response_timeout(uint32_t ms)
const float BEFORE_CONNECTION
For components that should be initialized after WiFi and before API is connected. ...
size_t write(const uint8_t *data, size_t size) override
bool read_byte(uint8_t *data)
bool can_proceed() override
virtual void on_status_change()=0
float get_setup_priority() const override
size_t write(uint8_t data) override
void HOT esp_log_vprintf_(int level, const char *tag, int line, const char *format, va_list args)
void set_period(uint32_t ms)
virtual int available()=0
virtual bool peek_byte(uint8_t *data)=0
void set_request_attempts(uint32_t attempts)
void set_beeper_feedback(bool state)
void write_byte(uint8_t data)
void set_autoconf(bool value)
uart::UARTComponent * uart_
Implementation of SPI Controller mode.
void set_uart(uart::UARTComponent *uart)
void set_transmitter(RemoteTransmitterBase *transmitter)
void set_uart_parent(uart::UARTComponent *parent)
void write_array(const std::vector< uint8_t > &data)
IrTransmitter transmitter_