# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-74Dd2C"
password: "u8ZCO5pH8nCA"
captive_portal:
命令行
<blockquote>root@esphome:/config# esphome run esphome-web-74dd2c.yaml
在web页面
INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome-web-74dd2c.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting /config/.esphome/build/esphome-web-74dd2c/.pioenvs
INFO Deleting /config/.esphome/build/esphome-web-74dd2c/.piolibdeps
INFO Compiling app...
Processing esphome-web-74dd2c (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
Library Manager: Installing esphome/AsyncTCP-esphome @ 2.0.1
INFO Installing esphome/AsyncTCP-esphome @ 2.0.1
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
INFO Installing esphome/ESPAsyncWebServer-esphome @ 3.1.0
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/noise-c @ 0.1.4
INFO Installing esphome/noise-c @ 0.1.4
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10018.1
INFO Installing esphome/libsodium @ 1.10018.1
Unpacking [####################################] 100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Library Manager: Installing WiFi
Library Manager: Warning! More than one package has been found by WiFi requirements:
Library Manager: - arduino-libraries/[email protected]
Library Manager: - mbed-zrem/[email protected]+sha.a446a6e2d3ce
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (shown above) to avoid name conflicts
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: [email protected] has been installed!
Library Manager: Installing FS
Warning! Could not find the package with 'FS' requirements for your system 'linux_x86_64'
Library Manager: Installing Update
Warning! Could not find the package with 'Update' requirements for your system 'linux_x86_64'
Library Manager: Installing DNSServer
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: [email protected] has been installed!
Library Manager: Installing ESPmDNS
Warning! Could not find the package with 'ESPmDNS' requirements for your system 'linux_x86_64'
Dependency Graph
|-- AsyncTCP-esphome @ 2.0.1
|-- WiFi @ 1.2.7
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.0
|-- noise-c @ 0.1.4
Compiling .pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_connection.cpp.o
Compiling .pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_frame_helper.cpp.o
Compiling .pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_pb2.cpp.o
Compiling .pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_pb2_service.cpp.o
In file included from src/esphome/components/socket/socket.h:6,
from src/esphome/components/api/api_frame_helper.h:14,
from src/esphome/components/api/api_connection.h:3,
from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/socket/headers.h:156:10: fatal error: sys/ioctl.h: No such file or directory
#include <sys/ioctl.h>
^~~~~~~~~~~~~
In file included from src/esphome/components/socket/socket.h:6,
from src/esphome/components/api/api_frame_helper.h:14,
from src/esphome/components/api/api_frame_helper.cpp:1:
src/esphome/components/socket/headers.h:156:10: fatal error: sys/ioctl.h: No such file or directory
#include <sys/ioctl.h>
^~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_pb2.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory
*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:esp_err.h"
* Web > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************
#include <esp_err.h>
^~~~~~~~~~~
In file included from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_pb2_service.h:5,
from src/esphome/components/api/api_pb2_service.cpp:3:
src/esphome/core/log.h:14:10: fatal error: esp_err.h: No such file or directory
*****************************************************************
* Looking for esp_err.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:esp_err.h"
* Web > https://registry.platformio.org/search?q=header:esp_err.h
*
*****************************************************************
#include <esp_err.h>
^~~~~~~~~~~
compilation terminated.
compilation terminated.
*** [.pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_pb2.cpp.o] Error 1
*** [.pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_frame_helper.cpp.o] Error 1
*** [.pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_pb2_service.cpp.o] Error 1
*** [.pioenvs/esphome-web-74dd2c/src/esphome/components/api/api_connection.cpp.o] Error 1
========================= [FAILED] Took 24.78 seconds =========================