Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkClient localIP() always returns IPAddress(0,0,0,0) #9843

Closed
1 task done
ayushsharma82 opened this issue Jun 12, 2024 · 1 comment · Fixed by #9845
Closed
1 task done

NetworkClient localIP() always returns IPAddress(0,0,0,0) #9843

ayushsharma82 opened this issue Jun 12, 2024 · 1 comment · Fixed by #9845
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@ayushsharma82
Copy link
Contributor

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) via localIP() 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 and ON_AP_FILTER didn't work as intended because localIP was always returned as IPAddress(0,0,0,0).

Sketch

Ref: https://github.com/espressif/arduino-esp32/blob/3.0.1/libraries/Network/src/NetworkClient.cpp#L604

Debug Message

`IPAddress(0,0,0,0)` is returned instead of actual local IP.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@me-no-dev
Copy link
Member

Fix in #9845

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants