-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ETH static IP configuration doesn't work #9673
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
Comments
AFTER begin ;) there is nothing to set the address to. WiFi works differently in this regard |
so static IP can be used only if begin() with DHCP is executed first? |
static IP can only be used if you |
it doesn't work
|
sorry I don't know from where did I copy that line into the minimal test, but I had the error in the big test sketch so fixing the ordering doesn't help.
|
IPAddress ip(192, 168, 254, 8);
IPAddress gw(192, 168, 254, 1);
IPAddress mask(255, 255, 255, 0);
IPAddress dns(192, 168, 254, 3);
SPI.begin(ETH_SPI_SCK, ETH_SPI_MISO, ETH_SPI_MOSI);
ETH.begin(ETH_TYPE, ETH_ADDR, ETH_CS, ETH_IRQ, ETH_RST, SPI);
ETH.config(ip, gw, mask, dns);
IP was correctly assigned and was able to connect to google, though the first attempt failed with DNS error, but second attempt was success. |
I found this #5733 in ETH.cpp mentioned at the end of
|
this works
maybe |
waiting in libs should be set to minimum. I'll try to find another solution |
Board
ESP32 Dev module
Device Description
Espressif dev module
Hardware Configuration
W5500 wired on default SPI pins
Version
latest master (checkout manually)
IDE Name
Arduino IDE
Operating System
Linux
Flash frequency
40
PSRAM enabled
yes
Upload speed
any
Description
ETH.config doesn't set static IP configuration, because of
in
NetworkInterface.config
Sketch
Debug Message
Other Steps to Reproduce
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: