mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 15:35:59 -07:00
more fixes
This commit is contained in:
@@ -223,6 +223,7 @@ ARDUINO_LIBRARY_IDF_COMPONENTS: dict[str, tuple[str, ...]] = {
|
|||||||
# ESPHome uses ESP-IDF APIs directly; we only need the Arduino core
|
# ESPHome uses ESP-IDF APIs directly; we only need the Arduino core
|
||||||
# (HardwareSerial, Print, Stream, GPIO functions which are always compiled)
|
# (HardwareSerial, Print, Stream, GPIO functions which are always compiled)
|
||||||
# Components can call enable_arduino_library() to re-enable any they need
|
# Components can call enable_arduino_library() to re-enable any they need
|
||||||
|
# This list must match ARDUINO_ALL_LIBRARIES from arduino-esp32/CMakeLists.txt
|
||||||
ARDUINO_DISABLED_LIBRARIES = (
|
ARDUINO_DISABLED_LIBRARIES = (
|
||||||
"ArduinoOTA",
|
"ArduinoOTA",
|
||||||
"AsyncUDP",
|
"AsyncUDP",
|
||||||
@@ -230,13 +231,17 @@ ARDUINO_DISABLED_LIBRARIES = (
|
|||||||
"BluetoothSerial",
|
"BluetoothSerial",
|
||||||
"DNSServer",
|
"DNSServer",
|
||||||
"EEPROM",
|
"EEPROM",
|
||||||
"ESPmDNS",
|
"ESP_HostedOTA",
|
||||||
|
"ESP_I2S",
|
||||||
|
"ESP_NOW",
|
||||||
"ESP_SR",
|
"ESP_SR",
|
||||||
|
"ESPmDNS",
|
||||||
"Ethernet",
|
"Ethernet",
|
||||||
"FFat",
|
"FFat",
|
||||||
"FS",
|
"FS",
|
||||||
"Hash",
|
"Hash",
|
||||||
"HTTPClient",
|
"HTTPClient",
|
||||||
|
"HTTPUpdate",
|
||||||
"Insights",
|
"Insights",
|
||||||
"LittleFS",
|
"LittleFS",
|
||||||
"Matter",
|
"Matter",
|
||||||
@@ -254,6 +259,7 @@ ARDUINO_DISABLED_LIBRARIES = (
|
|||||||
"SPIFFS",
|
"SPIFFS",
|
||||||
"Ticker",
|
"Ticker",
|
||||||
"Update",
|
"Update",
|
||||||
|
"USB",
|
||||||
"WebServer",
|
"WebServer",
|
||||||
"WiFi",
|
"WiFi",
|
||||||
"WiFiProv",
|
"WiFiProv",
|
||||||
|
|||||||
@@ -124,7 +124,9 @@ async def to_code(config):
|
|||||||
var = cg.new_Pvariable(config[CONF_ID])
|
var = cg.new_Pvariable(config[CONF_ID])
|
||||||
await cg.register_component(var, config)
|
await cg.register_component(var, config)
|
||||||
|
|
||||||
if CORE.using_arduino:
|
# ESP32 with Arduino framework uses ESP-IDF APIs directly for ESP-NOW,
|
||||||
|
# so we don't need the Arduino WiFi library
|
||||||
|
if CORE.using_arduino and not CORE.is_esp32:
|
||||||
cg.add_library("WiFi", None)
|
cg.add_library("WiFi", None)
|
||||||
|
|
||||||
# ESP-NOW uses wake_loop_threadsafe() to wake the main loop from ESP-NOW callbacks
|
# ESP-NOW uses wake_loop_threadsafe() to wake the main loop from ESP-NOW callbacks
|
||||||
|
|||||||
@@ -427,7 +427,9 @@ async def to_code(config):
|
|||||||
# Add LAN867x 10BASE-T1S PHY support component
|
# Add LAN867x 10BASE-T1S PHY support component
|
||||||
add_idf_component(name="espressif/lan867x", ref="2.0.0")
|
add_idf_component(name="espressif/lan867x", ref="2.0.0")
|
||||||
|
|
||||||
if CORE.using_arduino:
|
# ESP32 with Arduino framework uses ESP-IDF APIs directly for ethernet,
|
||||||
|
# so we don't need the Arduino WiFi library
|
||||||
|
if CORE.using_arduino and not CORE.is_esp32:
|
||||||
cg.add_library("WiFi", None)
|
cg.add_library("WiFi", None)
|
||||||
|
|
||||||
CORE.add_job(final_step)
|
CORE.add_job(final_step)
|
||||||
|
|||||||
@@ -38,11 +38,8 @@ async def to_code(config):
|
|||||||
cg.add_define("WEB_SERVER_DEFAULT_HEADERS_COUNT", 1)
|
cg.add_define("WEB_SERVER_DEFAULT_HEADERS_COUNT", 1)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# ESP32 uses IDF web server (early return above), so this is for other Arduino platforms
|
||||||
if CORE.using_arduino:
|
if CORE.using_arduino:
|
||||||
if CORE.is_esp32:
|
|
||||||
cg.add_library("WiFi", None)
|
|
||||||
cg.add_library("FS", None)
|
|
||||||
cg.add_library("Update", None)
|
|
||||||
if CORE.is_esp8266:
|
if CORE.is_esp8266:
|
||||||
cg.add_library("ESP8266WiFi", None)
|
cg.add_library("ESP8266WiFi", None)
|
||||||
if CORE.is_libretiny:
|
if CORE.is_libretiny:
|
||||||
|
|||||||
Reference in New Issue
Block a user