Page 1 of 1

facing issue to get current time from NTP server using LAN connetion

Posted: Mon Jun 19, 2023 5:22 am
by kesha.modhia
Hello,

I amusing esp32 wrover i version and trying to get current time using
localtime_r(&now, &timeinfo);

for this I am using ethernet connection,
by looking at the esp32 example of getting current time they have used Wi-Fi network

Is there ant dependency, that I can fetch current time only using Wi-Fi network, and not ethernet network ?

Let me know