cc3000 websocket demo for cc3000

Dependencies:   NVIC_set_all_priorities WebSocketClient cc3000_hostdriver_mbedsocket mbed

Files at this revision

API Documentation at this revision

Comitter:
SolderSplashLabs
Date:
Wed Oct 02 20:19:33 2013 +0000
Parent:
1:214d23448fa7
Child:
3:044c6bd2d569
Commit message:
Compiled for DipCortex

Changed in this revision

NVIC_set_all_priorities.lib Show annotated file Show diff for this revision Revisions of this file
cc3000_hostdriver_mbedsocket.lib Show annotated file Show diff for this revision Revisions of this file
init.cpp 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
main.h Show annotated file Show diff for this revision Revisions of this file
--- a/NVIC_set_all_priorities.lib	Wed Oct 02 20:56:46 2013 +0200
+++ b/NVIC_set_all_priorities.lib	Wed Oct 02 20:19:33 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/frankvnk/code/NVIC_set_all_priorities/#d3f63dfa84b7
+http://mbed.org/users/frankvnk/code/NVIC_set_all_priorities/#676bbfffe9f6
--- a/cc3000_hostdriver_mbedsocket.lib	Wed Oct 02 20:56:46 2013 +0200
+++ b/cc3000_hostdriver_mbedsocket.lib	Wed Oct 02 20:19:33 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#7069c5f1e6f4
+http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#14b6a3a2b622
--- a/init.cpp	Wed Oct 02 20:56:46 2013 +0200
+++ b/init.cpp	Wed Oct 02 20:19:33 2013 +0000
@@ -1,4 +1,5 @@
 #include "main.h"
+#include "mbed.h"
 
 #if (MY_BOARD == WIGO)
 
--- a/main.cpp	Wed Oct 02 20:56:46 2013 +0200
+++ b/main.cpp	Wed Oct 02 20:19:33 2013 +0000
@@ -21,14 +21,16 @@
 
 using namespace mbed_cc3000;
 
-Serial pc(USBTX, USBRX);
 tUserFS user_info;
 
 /* cc3000 module declaration specific for user's board. Check also init() */
 #if (MY_BOARD == WIGO)
 cc3000 wifi(PTA16, PTA13, PTD0, SPI(PTD2, PTD3, PTC5), PORTA_IRQn);
+Serial pc(USBTX, USBRX);
 #elif (MY_BOARD == WIFI_DIPCORTEX)
 cc3000 wifi(p28, p27, p30, SPI(p21, p14, p37), PIN_INT0_IRQn);
+//Serial pc(UART_TX, UART_RX);
+Serial pc(p19, p20);
 #else
 
 #endif
--- a/main.h	Wed Oct 02 20:56:46 2013 +0200
+++ b/main.h	Wed Oct 02 20:19:33 2013 +0000
@@ -20,7 +20,7 @@
 #define WIFI_DIPCORTEX 2
 #define UNDEFINED      3
 
-#define MY_BOARD WIGO
+#define MY_BOARD WIFI_DIPCORTEX
 
 // use this defines in AP_SECURITY
 #define NONE 0
@@ -32,9 +32,9 @@
 #define USE_SMART_CONFIG 0
 
  // Default SSID Settings
-#define AP_KEY       "test"
+#define AP_KEY       "yourkey"
 #define AP_SECURITY  WPA2            // WPA2 must be enabled for use with iPhone or Android phone hotspot!
-#define SSID         "test"
+#define SSID         "yourap"
 
 void init();