Modified version of easy-connect for W5500 Ethernet components

Dependents:   http-webserver-example mbed-os-example-sockets

Fork of easy-connect by Sergei G

Revision:
6:307d527714cf
Parent:
5:d81e6bc35f60
Child:
7:15287721e11b
--- a/easy-connect.cpp	Fri Aug 10 08:51:54 2018 +0000
+++ b/easy-connect.cpp	Mon Aug 13 08:10:37 2018 +0000
@@ -117,10 +117,11 @@
 #include "W5500Interface/DHCPClient/DHCPClient.h"
 DHCPClient dhcp;
  
+/*
 #include "W5500Interface/DNSClient/DNSClient.h"
 DNSClient  dns;
 #include "nsapi_dns.h"
-
+*/
 #else
 #error "No connectivity method chosen. Please add 'config.network-interfaces.value' to your mbed_app.json (see README.md for more information)."
 #endif // MBED_CONF_APP_NETWORK_INTERFACE
@@ -323,7 +324,8 @@
     sprintf(netmask, "%d.%d.%d.%d", dhcp.netmask[0], dhcp.netmask[1], dhcp.netmask[2], dhcp.netmask[3]);
     sprintf(dnsaddr, "%d.%d.%d.%d", dhcp.dnsaddr[0], dhcp.dnsaddr[1], dhcp.dnsaddr[2], dhcp.dnsaddr[3]);
     eth.init(ip, netmask, gateway);
-
+    eth.setDnsServerIP(dnsaddr);
+    
     network_interface = ð
 #if MBED_CONF_EVENTS_SHARED_DISPATCH_FROM_APPLICATION
     eth.set_blocking(false);