esp-rs / esp-idf-svc

Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)
https://docs.esp-rs.org/esp-idf-svc/
Apache License 2.0
333 stars 183 forks source link

× Broken pipe error message after running wifi.rs example #359

Closed weiying-chen closed 9 months ago

weiying-chen commented 9 months ago

I cloned the repository and set the WIFI_SSID and WIFI_PASS environment variables. Then I ran the wifi.rs example as instructed: $ MCU=esp32c3 cargo espflash flash --target riscv32imc-esp-espidf --example wifi --monitor.

No compiling errors. But I'm getting the same result plus a × Broken pipe message:

I (746) wifi_init: rx ba win: 6
I (746) wifi_init: tcpip mbox: 32
I (756) wifi_init: udp mbox: 6
I (756) wifi_init: tcp mbox: 6
I (766) wifi_init: tcp tx win: 5744
I (766) wifi_init: tcp rx win: 5744
I (766) wifi_init: tcp mss: 1440
I (776) wifi_init: WiFi IRAM OP enabled
I (776) wifi_init: WiFi RX IRAM OP enabled
I (806) phy_init: phy_version 1130,b4e4b80,Sep  5 2023,11Error:   × Broken pipe

Full log here.

Also mentioned here.

Note: my ESP32C3 is connected to my mini PC, so I'm not sure if it's receiving enough power to connect to Wi-Fi.