We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76b60e commit eeb6c7bCopy full SHA for eeb6c7b
examples/LegacyEthernetTest/LegacyEthernetTest.ino
@@ -52,9 +52,12 @@ void setup() {
52
Serial.print("Resolve IP for ");
53
Serial.println(serverName);
54
IPAddress resolvedIP;
55
- Ethernet.hostByName("www.google.com", resolvedIP);
56
- Serial.print("\t");
57
- Serial.println(resolvedIP);
+ if (Ethernet.hostByName("www.google.com", resolvedIP) == 1) {
+ Serial.print("\t");
+ Serial.println(resolvedIP);
58
+ } else {
59
+ Serial.println("\t...ERROR");
60
+ }
61
Serial.println();
62
63
Ethernet.end();
0 commit comments