cc3100_Socket_Wifi_Server with Ethernet Interface not working

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of cc3100_Test_Demo by David Fletcher

Revision:
9:fd9f64918306
Parent:
8:f4eb30a34ea7
--- a/main.cpp	Fri May 19 14:45:14 2017 +0000
+++ b/main.cpp	Fri May 26 10:03:00 2017 +0000
@@ -9,6 +9,7 @@
 #include "cc3100_nonos.h"
 #include "mbed.h"
 #include "rtos.h"
+//#include "EthernetInterface.h"
 
 using namespace mbed_cc3100;
 
@@ -41,38 +42,7 @@
      printf("***********Getting started with station application***********");
      printf("\n\r*******************************************************************************\n\r");
 }
-void ethernet(char a)
-{
-    EthernetInterface eth;
-    eth.init(); //Use DHCP
-    int i = eth.connect();
-    printf("Connection = %d\n", i);
-    
-    printf("IP Address is %s\n", eth.getIPAddress());
-    printf("Gateway is %s\n", eth.getGateway());
-    printf("MAC Address is %s\n", eth.getMACAddress());
-    
-    TCPSocketConnection sock;
-    sock.connect("mbed.org", 80);
-    
-    char http_cmd[] = "GET /www.google.com \n\n";
-    sock.send_all(http_cmd, sizeof(http_cmd)-1);
-    
-    char buffer[300];
-    int ret;
-    while (true) {
-        ret = sock.receive(buffer, sizeof(buffer)-1);
-        if (ret <= 0)
-            break;
-        buffer[ret] = '\0';
-        printf("Received %d chars from server:\n%s\n", ret, buffer);
-    }
-      
-    sock.close();
-    
-    eth.disconnect();
-   
-}
+
 
 //******************************STATION_MODE***********************************************
 //*****************************************************************************************
@@ -212,7 +182,7 @@
         }
         else 
             printf("\nAccept connection \n\r");
-
+ 
     while (LoopCount < NO_OF_PACKETS)
         {   
             //TODO : sarebbe da chiamare la funzione led() con un altro thread così da farla girare in background