11111
Fork of WIZnetInterface by
Diff: Socket/Endpoint.cpp
- Revision:
- 31:fc14e4330419
- Parent:
- 21:3b64df29662f
--- a/Socket/Endpoint.cpp Fri Nov 04 02:28:28 2016 +0000 +++ b/Socket/Endpoint.cpp Fri Nov 04 07:38:07 2016 +0000 @@ -34,14 +34,16 @@ int Endpoint::set_address(const char* host, const int port) { //Resolve DNS address or populate hard-coded IP address + Serial pc6(PA_13,PA_14); + pc6.printf("In set_address\r\n"); WIZnet_Chip* eth = WIZnet_Chip::getInstance(); if (eth == NULL) { - error("Endpoint constructor error: no WIZnet chip instance available!\r\n"); + pc6.printf("Endpoint constructor error: no WIZnet chip instance available!\r\n"); return -1; } uint32_t addr; if (!eth->gethostbyname(host, &addr)) { - error("DNS error : Cannot get url from DNS server\r\n"); + pc6.printf("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);