Wifi Pressure Sensor

Dependencies:   HTTPClient MPL3115A2 NTPClient TMP102 USBDevice cc3000_hostdriver_mbedsocket mbed

Revision:
3:15828ac052f1
Parent:
2:8f5776c287c5
Child:
4:1ecda7622e07
--- a/tcpTests.cpp	Tue Nov 12 09:19:13 2013 +0000
+++ b/tcpTests.cpp	Wed Nov 13 21:33:37 2013 +0000
@@ -9,21 +9,22 @@
 
 using namespace mbed_cc3000;
 
-
 extern cc3000 wifi;
 extern USBSerial pc;
 
 HTTPClient http;
 
+// NOTE : Change SolderSplashLabs to anything else for your own channel
 // Goto the viewier page here : http://sockets.mbed.org/SolderSplashLabs/viewer to see the websocket writes
-const char WEB_SOCKET_URL[] = {"ws://sockets.mbed.org/ws/SolderSplashLabs/wo"};
+const char WEB_SOCKET_URL[] = {"ws://sockets.mbed.org/ws/SolderSplashLabs/rw"};
 const char* ECHO_SERVER_ADDRESS = "192.168.0.10";
 const int ECHO_SERVER_PORT_TCP = 80;
 char hello[] = "Hello World\r\n";
-char tmpBuffer[512];
 
+// Put the tmpbuffer into RAM1
+char tmpBuffer[512] __attribute__((section("AHBSRAM0")));
 
-//char XivelyUrl[] = "http://api.xively.com/v2/feeds/1197891669";
+// Add your own feed Id and API key here..
 char XivelyHostname[] = "api.xively.com";
 char XivelyPath[] = "/v2/feeds/YOUR-FEED-ID-HERE";
 char XivelyApiKey[] = "YOUR-API-KEY-HERE";
@@ -252,6 +253,10 @@
         ws.close();
         pc.printf("Websocket Closed \r\n");
     }
+    else
+    {
+        pc.printf("Websocket connection failed\r\n");
+    }
 }
 
 // ------------------------------------------------------------------------------------------------------------
@@ -325,6 +330,10 @@
         ws.close();
         pc.printf("Websocket Closed \r\n");
     }
+    else
+    {
+        pc.printf("Websocket connection failed\r\n");
+    }
 }
 
 // ------------------------------------------------------------------------------------------------------------