Wi-Fi Expansion
ESP32-P4 does not support Wi-Fi functionality natively, but it is possible to use the same Wi-Fi API and features using Wi-Fi expansion.
On ESP32-P4 and ESP32-H2, Wi-Fi is provided by the hosted remote backend. Current esp_hosted releases implement esp_eap_client_remote_set_ttls_phase2_method() and do not implement esp_eap_client_remote_set_phase2_method(). esp_eap_client_set_phase2_method() returns ESP_ERR_NOT_SUPPORTED on that path. The legacy setter still forwards ESP_EAP_TTLS_PHASE2_GTC through the existing RPC. Selecting EAP-GTC that way requires a backend that understands this new value; released backends predate it, so the result depends on the backend.
ESP32-P4 esp_wifi_remote
The principle of Wi-Fi Expansion operation is to add another ESP32 series, Wi-Fi capable, target connected to the ESP32-P4 in a pre-defined way. Your project could then include the esp_wifi_remote component using:
idf.py add-dependency esp_wifi_remote
Please follow the instructions described in the component documentation which is linked in the above paragraph.
To explore the Wi‑Fi Expansion functionality on ESP32-P4, you can:
Start with the built‑in MQTT over TLS example
examples/protocols/mqtt(or the MQTT 5.0 variantexamples/protocols/mqtt5) and choose Wi‑Fi connection in the project configuration menu;
ESP32-P4 esp-extconn
The principle of esp-extconn operation is to add another supported target series connected to the ESP32-P4 in a pre-defined way. Compared to the esp_wifi_remote approach, the target side can operate without flash, as the firmware is delivered by the hosted side. Your project could then include the esp-extconn component using:
idf.py add-dependency esp-extconn
Please follow the instructions described in the esp-extconn documentation.
To explore the esp-extconn functionality on ESP32-P4, you can get started with this example: examples/wifi/iperf/README.md and choose Wi-Fi connection in the project configuration menu.