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

0.12.0.b4 Ethernet unable to get ip address over DHCP #1837

Closed
bmcmahan123 opened this issue Mar 29, 2021 · 2 comments
Closed

0.12.0.b4 Ethernet unable to get ip address over DHCP #1837

bmcmahan123 opened this issue Mar 29, 2021 · 2 comments
Labels

Comments

@bmcmahan123
Copy link

Describe the bug
When configured to use ethernet, the device never get's an up address

To Reproduce
Flash to the latest 0.12.b4 release. Configure device over AP mode to use Ethernet (WT32-ETH0 in my case). Plug device into ethernet and boot the device. I can see the device on my network with an ip address of 255.255.255.255, however it never receives a valid ip address.

Expected behavior
When device is plugged into ethernet it should obtain an ip address and connect to the network.

WLED version

  • Board: WT32-ETH0
  • Version 0.12.b4
  • Format self-compiled
@bmcmahan123
Copy link
Author

bmcmahan123 commented Mar 29, 2021

Troubleshooting this a bit. If I use the Espressif 32 2.0 instead of 3.1.1, everything works fine. My example
platformio_override.ini looks like the below:

[platformio]
default_envs = esp32_eth_debug

[env:esp32_eth_debug]
board = esp32-poe
platform = [email protected]
upload_speed = 921600
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32} ${common.debug_flags} -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -D RLYPIN=-1 -D WLED_USE_ETHERNET -D BTNPIN=-1
lib_ignore =
ESPAsyncTCP
ESPAsyncUDP

** update **
I just tried the new [email protected] and that seems to work correctly too.

** update **
I tracked the bug fix down to
espressif/arduino-esp32@bd413342

@Aircoookie
Copy link
Member

Thank you very much for reporting!
We have run into espressif/arduino-esp32#4778 here.
I will test [email protected] and if it has no side effects, that will be used instead of 3.1.1. Otherwise, a simple fix by replacing INADDR_NONE by IPAddress(0,0,0,0) in l. 156 of wled.cpp should work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants