WiFi DipCortex USB CDC

Dependencies:   HTTPClient NTPClient USBDevice WebSocketClient cc3000_hostdriver_mbedsocket mbed

Fork of WiFiDip-UsbKitchenSink by Carl - SolderSplash Labs

http://www.soldersplash.co.uk/products/wifi-dipcortex/

Demo shows you how to implement the CC3000 library with the WiFi DipCortex.

The demo shows :

  • USB CDC ( Serial ) Menu system allow control of the module and starting each example
  • Smart Connect
  • Manual connect
  • Connection status
  • Ping
  • TCP Client
  • TCP Server
  • Web Socket read/write to sockets.mbed.org
  • HTTP Client test Post, Put, Delete
  • Posting ADC data to Xively every 1 second
  • UDP Client
  • UDP Server
  • NTP Example, contacts time server to get the current time

You will need a Driver for the USB CDC port which can be found here : http://www.soldersplash.co.uk/docs/DipCortex-USB-CDC.zip

Please refer to : http://mbed.org/users/SolderSplashLabs/notebook/dipcortex---getting-started-with-mbed/ as well as the SolderSplash Forum for support http://forum.soldersplash.co.uk/viewforum.php?f=15

Revision:
2:8f5776c287c5
Parent:
0:0bce3a738bcb
Child:
3:15828ac052f1
--- a/main.cpp	Mon Nov 04 22:18:14 2013 +0000
+++ b/main.cpp	Tue Nov 12 09:19:13 2013 +0000
@@ -15,7 +15,7 @@
 #if (MY_BOARD == WIGO)
 cc3000 wifi(PTA16, PTA13, PTD0, SPI(PTD2, PTD3, PTC5), PORTA_IRQn);
 #elif (MY_BOARD == WIFI_DIPCORTEX)
-cc3000 wifi(p28, p27, p30, SPI(p21, p14, p37), PIN_INT0_IRQn);
+cc3000 wifi(p28, p27, p30, SPI(p21, p14, p37));
 Serial uart(p19, p20);
 USBSerial pc;               // USB CDC serial port
 #else
@@ -262,6 +262,7 @@
 // ------------------------------------------------------------------------------------------------------------
 void SmartConfig ( void )
 {
+    pc.printf("\r\nStarting Smart config, waiting for message from smartphone app ....\r\n");
     // We dont want to auto reconnect to an access point
     wifi._wlan.ioctl_set_connection_policy(0, 0, 0);
     
@@ -470,7 +471,7 @@
             WebSocketTest();
         break;
         case '4':
-        
+            WebSocketReadTest();
         break;
         case '5':
             HttpClientTest();