Hi All,
Finally I got a static IP for Ethernet, modifying the function tcpip_adapter_dhcpc_stop, but when I test the SNTP example, is not possible to get the time from the server.
This behavior is normal or I missing something?
Regards
Thanks in advance.
Juan
Ethernet with IP static and SNTP
Re: Ethernet with IP static and SNTP
Static IP you need to provide DNS server address
(Not a hardware question, wrong forum)
(Not a hardware question, wrong forum)
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: Ethernet with IP static and SNTP
Moved to SDK forum.
-
- Posts: 34
- Joined: Wed Feb 15, 2017 8:31 pm
Re: Ethernet with IP static and SNTP
Hi All,
Thanks for the tip about DNS
Sorry to habe bben in the HDK
Regards
Juan
Have a nice WE
Thanks for the tip about DNS
Sorry to habe bben in the HDK
Regards
Juan
Have a nice WE
-
- Posts: 34
- Joined: Wed Feb 15, 2017 8:31 pm
Re: Ethernet with IP static and SNTP
Hi WiFive,WiFive wrote:Static IP you need to provide DNS server address
(Not a hardware question, wrong forum)
It is a question again about Static IP and DNS..., the situation is as you mention is necessary to provide de DNS server address, so far is Ok and I have tested it, but my new question it is a issue inside the LWIP and/or the ESP32?... or better why with static IP the DNS is not resolved and we have to use the address?
Thanks in advance
Juan
Re: Ethernet with IP static and SNTP
DNS addresses are obtained with DHCP when using dynamic ip. When using static IP you need to provide it yourself. If you've ever configured the network address on a PC you'd see the same thing.
John A
John A
Who is online
Users browsing this forum: No registered users and 120 guests