Add WiFi companion support for Pico W

SerialWifiInterface has no ESP32-specific code, so move it to
helpers/wifi and reuse it on RP2040. Guard the ESP32-only WiFi
event/auto-reconnect calls and poll link state on RP2040 instead.
This commit is contained in:
Michael Graff
2026-09-05 23:15:13 -05:00
parent 65aa1138ae
commit 0b2c47a932
5 changed files with 34 additions and 21 deletions
+1
View File
@@ -64,6 +64,7 @@ build_flags = ${arduino_base.build_flags}
-D ESP32_PLATFORM
; -D ESP32_CPU_FREQ=80 ; change it to your need
build_src_filter = ${arduino_base.build_src_filter}
+<helpers/wifi/*.cpp>
[esp32_ota]
lib_deps =