13 #include <HardwareSerial.h> 16 #include <driver/uart.h> 17 #if defined(USE_ESP32_VARIANT_ESP32C3) || defined(USE_ESP32_VARIANT_ESP32C6) || defined(USE_ESP32_VARIANT_ESP32S3) || \ 18 defined(USE_ESP32_VARIANT_ESP32H2) 19 #include <driver/usb_serial_jtag.h> 20 #include <hal/usb_serial_jtag_ll.h> 22 #if defined(USE_ESP32_VARIANT_ESP32S2) || defined(USE_ESP32_VARIANT_ESP32S3) 23 #include <esp_private/usb_console.h> 28 namespace improv_serial {
37 static const uint16_t IMPROV_SERIAL_TIMEOUT = 100;
38 static const uint8_t IMPROV_SERIAL_VERSION = 1;
42 void setup()
override;
void write_data_(std::vector< uint8_t > &data)
bool parse_improv_payload_(improv::ImprovCommand &command)
void dump_config() override
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
optional< uint8_t > read_byte_()
bool parse_improv_serial_byte_(uint8_t byte)
void set_state_(improv::State state)
wifi::WiFiAP connecting_sta_
float get_setup_priority() const override
std::vector< uint8_t > build_rpc_settings_response_(improv::Command command)
void send_response_(std::vector< uint8_t > &response)
void set_error_(improv::Error error)
void on_wifi_connect_timeout_()
Implementation of SPI Controller mode.
std::vector< uint8_t > rx_buffer_
std::vector< uint8_t > build_version_info_()
ImprovSerialComponent * global_improv_serial_component