src/esphome/components/logger/logger_esp32.cpp: In member function 'void esphome::logger::Logger::pre_setup()':
src/esphome/components/logger/logger_esp32.cpp:123:29: error: 'Serial' was not declared in this scope
this->hw_serial_ = &Serial;
^~~~~~
src/esphome/components/logger/logger_esp32.cpp:123:29: note: suggested alternative: 'Serial1'
this->hw_serial_ = &Serial;
^~~~~~
Serial1
Compiling .pioenvs\blegateway1\src\esphome\components\mdns\mdns_rp2040.cpp.o
src/esphome/components/logger/logger.cpp: In member function 'virtual void esphome::logger::Logger::loop()':
src/esphome/components/logger/logger.cpp:158:17: error: 'Serial' was not declared in this scope
if (opened == Serial) {
^~~~~~
src/esphome/components/logger/logger.cpp:158:17: note: suggested alternative: 'Serial1'
if (opened == Serial) {
^~~~~~
Serial1
*** [.pioenvs\blegateway1\src\esphome\components\logger\logger_esp32.cpp.o] Error 1
*** [.pioenvs\blegateway1\src\esphome\components\logger\logger.cpp.o] Error 1
========================= [FAILED] Took 20.60 seconds =========================
执行“esphome compile xxx.yaml”报错:"UnknownPackageError: Could not find the package with 'espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch3' requirements for your system 'linux_x86_64'"
解决办法:修改 xxx.yaml中“platform_version: 5.1.1” -》“platform_version: 5.3.0”