WIZ Proto Makers 3th Network

Dependencies:   WIZnetInterface mbed

Fork of WIZwiki-W7500-lecture by Bohyun Bang

Files at this revision

API Documentation at this revision

Comitter:
Ricky_Kwon
Date:
Wed Feb 03 03:38:27 2016 +0000
Parent:
2:ba228e5b659c
Child:
4:fb02cd21f3dc
Commit message:
WIZ Proto Makers 3th Network

Changed in this revision

WIZnetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/WIZnetInterface.lib	Mon Feb 01 00:34:33 2016 +0000
+++ b/WIZnetInterface.lib	Wed Feb 03 03:38:27 2016 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#7d7553e0578e
+http://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/#c91884bd2713
--- a/main.cpp	Mon Feb 01 00:34:33 2016 +0000
+++ b/main.cpp	Wed Feb 03 03:38:27 2016 +0000
@@ -12,27 +12,6 @@
      
     printf("IP Address is %s\r\n", eth.getIPAddress());
 
-    UDPSocket udp_sock;
-    TCPSocketConnection tcp_sock;
-    tcp_sock.connect("192.168.0.244", 4545);
-    udp_sock.init();
-    udp_sock.bind(60001);
-    Endpoint udp_server;
-    udp_server.set_address("192.168.0.244",4023);
-    char http_cmd[] = "GET /data/2.5/weather?q=Seoul,kr HTTP/1.0\n\n";
-    tcp_sock.send_all(http_cmd, sizeof(http_cmd)-1);
-    udp_sock.sendTo(udp_server,http_cmd,sizeof(http_cmd)-1);
-    char buffer[400];
-    int ret;
-    while (true) {
-        ret = tcp_sock.receive(buffer, sizeof(buffer)-1);
-        if (ret <= 0) break;
-        buffer[ret] = '\0';
-        printf("Received %d chars from server: %s\n", ret, buffer);     
-    }
-
-    tcp_sock.close();
-    
     eth.disconnect();
 
 }
\ No newline at end of file
--- a/mbed.bld	Mon Feb 01 00:34:33 2016 +0000
+++ b/mbed.bld	Wed Feb 03 03:38:27 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96
\ No newline at end of file