gmag11 / ESPNtpClient

High accuracy NTP library for ESP32 and ESP8266
MIT License
118 stars 25 forks source link

Lib does not work with wired connection #54

Open Gerry33 opened 4 months ago

Gerry33 commented 4 months ago

The lib is fairly good, but does not work for wired connection. Checked with a OLIMEX POE ESP32 controller. The UDP reponse is not received at all.

Applying WIFI on the same board and all is fine.

mountainman13 commented 1 month ago

I had the same issue, solved it by making a few changes to ESPNTPClient.cpp (as in release 0.2.7): 1 - Replace WiFi.isConnected() by ETH.localIP(), lines 190, 533 and 544. 2 - Replace WiFi.localIP() by ETH.localIP(), line 193.