Search found 3 matches

by pilkaj
Mon Nov 08, 2021 11:22 am
Forum: General Discussion
Topic: Unable to run SNTP via ethernet
Replies: 2
Views: 1449

Re: Unable to run SNTP via ethernet

Here is the code snippet as promissed including DNS setup: esp_netif_dhcpc_stop(eth_netif); esp_netif_ip_info_t info_t; esp_netif_dns_info_t dns_info; memset(&info_t, 0, sizeof(esp_netif_ip_info_t)); inet_pton(AF_INET, Configuration.staticip_eth, &info_t.ip); inet_pton(AF_INET, Configuration.gateway...
by pilkaj
Thu Nov 04, 2021 10:42 am
Forum: General Discussion
Topic: Unable to run SNTP via ethernet
Replies: 2
Views: 1449

Re: Unable to run SNTP via ethernet

I found out that DNS setup is missing in my ethernet configuration, therefore it is unable to connect to the NTP server. When I provide direct IP address, it works. As a solution, I will soon provide command which sets the DNS for ethernet here.
by pilkaj
Mon Nov 01, 2021 1:25 pm
Forum: General Discussion
Topic: Unable to run SNTP via ethernet
Replies: 2
Views: 1449

Unable to run SNTP via ethernet

Hey, I work on a software for ESP32 and use Ethernet kit A ver1.1. When I use wifi STA and connect to my router, the software taken from the SNTP example provided with ESP-IDF (v4.4) works well. However, when I use ethernet, the time is unable to synchronize. In this case, wifi STA is not configured...