Bohyun Bang / WIZnetInterface

Dependents:   w7500-paho-mqtt openHAB_mqtt_W7500 kakaoIoTchatbot w7500-RFID-mqtt

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
hjjeon
Date:
Thu Jul 30 08:15:40 2015 +0000
Parent:
20:bda61525ac71
Child:
22:b727920ecc5d
Commit message:
Add error message at set_address.

Changed in this revision

Socket/Endpoint.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Socket/Endpoint.cpp	Wed Jul 22 02:11:37 2015 +0000
+++ b/Socket/Endpoint.cpp	Thu Jul 30 08:15:40 2015 +0000
@@ -41,6 +41,7 @@
     }
     uint32_t addr;
     if (!eth->gethostbyname(host, &addr)) {
+        error("DNS error : Cannot get url from DNS server\r\n");
         return -1;
     }
     snprintf(_ipAddress, sizeof(_ipAddress), "%d.%d.%d.%d", (addr>>24)&0xff, (addr>>16)&0xff, (addr>>8)&0xff, addr&0xff);