cc3000 hostdriver with the mbed socket interface. Hacked TCP Classes for better control of non-blocking sockets.

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
47:86bb5f431c50
Parent:
46:ca8c234997c0
Child:
48:1e6068103f0b
--- a/cc3000.cpp	Sun Nov 10 21:41:44 2013 +0100
+++ b/cc3000.cpp	Mon Oct 27 18:45:11 2014 +0000
@@ -41,6 +41,10 @@
 #include "cc3000.h"
 #include "cc3000_event.h"
 
+/* DEBUG */
+//#include "USBSerial.h"
+//extern USBSerial serial;
+
 namespace mbed_cc3000 {
 
 /* TODO this prefix remove? verify */
@@ -236,6 +240,7 @@
 
     if (event_type == HCI_EVNT_BSD_TCP_CLOSE_WAIT) {
         uint8_t socketnum = data[0];
+//        serial.printf("Socket closure reported: %d\r\n", socketnum);
         DBG_CC("Callback : HCI_EVNT_BSD_TCP_CLOSE_WAIT - Socket : %d", socketnum);
         if (socketnum < MAX_SOCKETS) {
             _closed_sockets[socketnum] = true; /* clients socket is closed */