Xively demo for cc3000

Dependencies:   NVIC_set_all_priorities cc3000_hostdriver_mbedsocket libxively mbed

Revision:
3:6eb505b0beb3
Parent:
2:ed5cf21e63b4
Child:
4:cea07f0d1eeb
--- a/main.cpp	Sun Oct 13 12:06:53 2013 +0000
+++ b/main.cpp	Mon Oct 14 15:33:28 2013 +0000
@@ -147,11 +147,9 @@
     strcpy(counter_datastream->datastream_id, "Uptime");
     xi_datapoint_t* counter = &counter_datastream->datapoints[0];
     
-    // create the cosm library context
     xi_context_t* xi_context = xi_create_context(XI_HTTP, XI_API_KEY, feed.feed_id);
 
-    // check if everything works
-    if(xi_context == NULL)
+    if (xi_context == NULL)
     {
         printf("Context failed to initialized. \r\n");
         return -1;
@@ -160,14 +158,14 @@
     flipper_seconds.attach(&update_timer, 1.0);
 
     while(1) {  
-      xi_set_value_f32(led_status, myled);  
-      xi_set_value_f32(counter, time_seconds);
+        xi_set_value_f32(led_status, myled);  
+        xi_set_value_f32(counter, time_seconds);
       
-      printf( "update...\r\n");
-      xi_feed_update(xi_context, &feed);
-      printf( "done...\r\n");
-      wait(10);
-      myled = myled ^ 0x1;
+        printf( "update...\r\n");
+        xi_feed_update(xi_context, &feed);
+        printf( "done...\r\n");
+        wait(10);
+        myled = myled ^ 0x1;
     }
 
 }