Skip to content

esp_netif interfaces check for isConnected for esp32p4 compatiblity#235

Merged
hoeken merged 2 commits intohoeken:masterfrom
woodenplastic:master
May 3, 2026
Merged

esp_netif interfaces check for isConnected for esp32p4 compatiblity#235
hoeken merged 2 commits intohoeken:masterfrom
woodenplastic:master

Conversation

@woodenplastic
Copy link
Copy Markdown
Contributor

Hi,

i hope this contribution is up to standarts, its my first time so sorry for in advance if not suited.

On a esp32p4 model with co-processor the webserver didnt start because we dont use WiFi or ETH in esp-idf. I tried different things to fix that problem and this pr is what i came up with.

It doesnt rely on WiFi or ETH, instead loops through the interfaces to find a used one.

Feedback is highly appreciated.

Best
Adrian

simonttp78 added a commit to simonttp78/PsychicHttp that referenced this pull request Feb 23, 2026
…bility

This patch is based on the work by woodenplastic (see PR hoeken#235 in hoeken/PsychicHttp). It updates isConnected() to enumerate all esp_netif interfaces and check for a valid IP address, ensuring compatibility with ESP32-P4 and future ESP32 variants.

Commit time: 05:50
@hoeken
Copy link
Copy Markdown
Owner

hoeken commented Apr 30, 2026

Hey I'm sorry, somehow I missed the notification for this. I'll try and get it tested and merged ASAP.

@hoeken hoeken merged commit 7934120 into hoeken:master May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants