NetworkClient localIP()
always returns IPAddress(0,0,0,0)
#9843
Labels
Status: Awaiting triage
Issue is waiting for triage
Board
ESP32 Dev Module
Device Description
Wemos D1 Mini ESP32 Board
Hardware Configuration
Bare Board
Version
v3.0.1
IDE Name
Arduino IDE 2
Operating System
macOS 14.5
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
NetworkClient class in ESP32 Arduino Core v3.0.1 always returns
IPAddress(0,0,0,0)
vialocalIP()
method regardless of which interface is used (AP
/STA
/AP_STA
).This was diagnosed as part of my feature request PR: #9842 . The
ON_STA_FILTER
andON_AP_FILTER
didn't work as intended becauselocalIP
was always returned asIPAddress(0,0,0,0)
.Sketch
Ref: https://github.com/espressif/arduino-esp32/blob/3.0.1/libraries/Network/src/NetworkClient.cpp#L604
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: