From eeccd54b218a4958490d428fa97cf81a32aad296 Mon Sep 17 00:00:00 2001 From: "erik.nyquist" Date: Mon, 20 Jun 2016 15:40:32 -0700 Subject: [PATCH] Make WebClient examples consistent Use the DNS name for google by default in the Ethernet WebClient sketch, and leave the numeric IP commented out, like in the WiFiWebClient example. --- libraries/Ethernet/examples/WebClient/WebClient.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/Ethernet/examples/WebClient/WebClient.ino b/libraries/Ethernet/examples/WebClient/WebClient.ino index 6ce3efc..6488832 100644 --- a/libraries/Ethernet/examples/WebClient/WebClient.ino +++ b/libraries/Ethernet/examples/WebClient/WebClient.ino @@ -21,7 +21,8 @@ byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // This address may change; use "ping www.google.com" to check. -IPAddress server(172,217,3,238); // Google +// IPAddress server(172,217,3,238); // Google (No DNS) +char server[] = "www.google.com"; // Google (Using DNS) // Initialize the Ethernet client library // with the IP address and port of the server