Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C3 support #10

Closed
zuidwijk opened this issue Nov 21, 2021 · 3 comments
Closed

ESP32-C3 support #10

zuidwijk opened this issue Nov 21, 2021 · 3 comments

Comments

@zuidwijk
Copy link

When trying to add stream server to an ESP32-C3, I got this error:

esphome clean esp32c3-basic.yaml
INFO Reading configuration esp32c3-basic.yaml...
Failed config

async_tcp: None
  {}

&&

esphome run esp32c3-basic.yaml  
INFO Reading configuration esp32c3-basic.yaml...
Failed config

async_tcp: None
  {}

The config I use:

esphome:
  name: esp32c3-basic
  comment: "esp32c3-basic"
  platformio_options:
    board_build.f_flash: 40000000L
    board_build.flash_mode: dio
    board_build.flash_size: 4MB

esp32:
  variant: ESP32C3
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf
    version: recommended

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

wifi:
  ssid: "********"
  password: "********"

uart:
  id: uart_tcp
  rx_pin: GPIO20
  tx_pin: GPIO21
  baud_rate: 115200
  data_bits: 8
  parity: NONE
  stop_bits: 1

external_components:
  - source: github://oxan/esphome-stream-server

stream_server:
   uart_id: uart_tcp
   port: 23
@oxan
Copy link
Owner

oxan commented Nov 21, 2021

Yeah, this component needs to be rewritten to use the new socket abstraction instead of async_tcp, but I haven't had the time and motivation to do that yet. PR's welcome.

@oxan
Copy link
Owner

oxan commented Feb 3, 2023

I've now (finally) finished the rewrite using the socket abstraction, in PR #25. That should work on the C3 now as well.

@oxan
Copy link
Owner

oxan commented Feb 7, 2023

This has now been merged into master.

@oxan oxan closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants