tst
Dependencies: C12832_lcd EthernetInterface LM75B MMA7660 mbed-libxively-6eca970 mbed-rtos mbed
Fork of Application-xively-jumpstart-demo by
Revision 7:ffaea0d21d77, committed 2014-06-03
- Comitter:
- habibiam
- Date:
- Tue Jun 03 03:41:12 2014 +0000
- Parent:
- 6:9af362ececc4
- Commit message:
- test
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-libxively-6eca970.lib | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9af362ececc4 -r ffaea0d21d77 main.cpp --- a/main.cpp Tue Sep 24 22:40:17 2013 +0000 +++ b/main.cpp Tue Jun 03 03:41:12 2014 +0000 @@ -57,8 +57,10 @@ // 332668647 // ZmCG3GmfnJzvt1LZnLdHfS9D5vlfNrXQSxKD1jpzqsAsp3bh -#define XI_FEED_ID 332668647 // set Xively Feed ID (numerical, no quoutes -#define XI_API_KEY "ZmCG3GmfnJzvt1LZnLdHfS9D5vlfNrXQSxKD1jpzqsAsp3bh" // set Xively API key (double-quoted string) +// #define XI_FEED_ID 332668647 // set Xively Feed ID (numerical, no quoutes +#define XI_FEED_ID 580296092 +//#define XI_API_KEY "ZmCG3GmfnJzvt1LZnLdHfS9D5vlfNrXQSxKD1jpzqsAsp3bh" // set Xively API key (double-quoted string) +#define XI_API_KEY "XfwL8x9W6zHc1cFA05SqL9SGOMC1mMzmvRjR0i6Exf5s2lqS" #include "C12832_lcd.h" @@ -127,8 +129,8 @@ memset( &feed, NULL, sizeof( xi_feed_t ) ); feed.feed_id = XI_FEED_ID; - feed.datastream_count = 3; - + // feed.datastream_count = 3; // + feed.datastream_count = 4; feed.datastreams[0].datapoint_count = 1; xi_datastream_t* orientation_datastream = &feed.datastreams[0]; strcpy( orientation_datastream->datastream_id, "orientation" ); @@ -162,7 +164,7 @@ switch( axl.getSide() ) { case MMA7660::Front: - xi_set_value_str( current_side_rotation, "front" ); + xi_set_value_str( current_side_rotation, "my_front" ); break; case MMA7660::Back: xi_set_value_str( current_side_rotation, "back" ); @@ -203,7 +205,8 @@ mbed_printf( "update...\n" ); xi_feed_update(xi_context, &feed); mbed_printf( "done...\n" ); + mbed_printf( ".... done...\n" ); - wait( 15.0 ); + wait( 1.0 ); } } \ No newline at end of file
diff -r 9af362ececc4 -r ffaea0d21d77 mbed-libxively-6eca970.lib --- a/mbed-libxively-6eca970.lib Tue Sep 24 22:40:17 2013 +0000 +++ b/mbed-libxively-6eca970.lib Tue Jun 03 03:41:12 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/xively/code/mbed-libxively-6eca970/#82702e998d3f +http://mbed.org/users/habibiam/code/mbed-libxively-6eca970/#0556e1894817