eth

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of FRDM_K64F-Ethernet by Rangel Alvarado

Revision:
5:f689b3fc93b2
Parent:
4:edeb4d3d1968
Child:
6:0ace244a8a9a
--- a/main.cpp	Thu Apr 23 18:38:21 2015 +0000
+++ b/main.cpp	Thu Apr 23 18:41:54 2015 +0000
@@ -6,21 +6,17 @@
 #define GW      "***"
 #define PORT   **
 
-void getsth(char a, EthernetInterface e, TCPSocketConnection cli);
-
 int main (void){
     EthernetInterface eth;
     eth.init(IP, MASK, GW); //Assign a device ip, mask and gateway
     // eth.init();
     eth.connect();
-    printf("IP Address is %s\n", eth.getIPAddress()); 
-
+    
     TCPSocketServer server;
     server.bind(PORT);
     server.listen();
 
     while (true) {
-        printf("\nWait for new connection...\n");
         TCPSocketConnection client;
         server.accept(client);
         client.set_blocking(false, 1500); // Timeout after (1.5)s