出错信息为:
Archiving .pioenvs/esp32c3/lib761/libnoise-c.a
Linking .pioenvs/esp32c3/firmware.elf/config/.esphome/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pioenvs/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.o: in function `esphome::esp32_ble_tracker::ESP32BLETracker::stop_scan()':/config/.esphome/build/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp:234: undefined reference to `esp_ble_gap_stop_scanning'/config/.esphome/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pioenvs/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.o: in function `esphome::esp32_ble_tracker::ESP32BLETracker::start_scan_(bool)':/config/.esphome/build/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp:256: undefined reference to `esp_ble_gap_set_scan_params'/config/.esphome/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: /config/.esphome/build/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp:259: undefined reference to `esp_ble_gap_start_scanning'/config/.esphome/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pioenvs/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.o: in function `esphome::esp32_ble_tracker::ESP32BLETracker::loop()':/config/.esphome/build/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp:222: undefined reference to `esp_ble_gap_stop_scanning'/config/.esphome/platformio/packages/[email protected]+2021r2-patch5/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: /config/.esphome/build/esp32c3/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp:185: undefined reference to `esp_ble_gap_stop_scanning'collect2: error: ld returned 1 exit status*** [.pioenvs/esp32c3/firmware.elf] Error 1