ACKme WiFi module + IKS01A1 MEMS module example. Connect and publish sensor data to M2X.
Dependencies: M2XStreamClient WiConnect MEMS-Sensors jsonlite mbed
Revision 1:276e4607719f, committed 2014-12-11
- Comitter:
- davidkwak
- Date:
- Thu Dec 11 21:27:59 2014 +0000
- Parent:
- 0:db24f1dae4a4
- Commit message:
- Changed baud rate to 9600 bps for consistency.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
target_config.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r db24f1dae4a4 -r 276e4607719f main.cpp --- a/main.cpp Thu Dec 11 20:56:33 2014 +0000 +++ b/main.cpp Thu Dec 11 21:27:59 2014 +0000 @@ -15,7 +15,7 @@ /** * Hyperterminal configuration - * 115200 bauds, 8-bit data, no parity + * 9600 bauds, 8-bit data, no parity */ /** @@ -32,8 +32,8 @@ */ #define NETWORK_PASSWORD "\"<YOUR NETWORK PASSWORD HERE>\"" -const char key[] = "0a49487bc297bc061ca49ac01eb3755f"; // Replace with your M2X API key -const char feed[] = "db817fd389c05eca79c331b4bb6daf8d"; // Replace with your blueprint Feed ID +const char key[] = "123ad8ee16ef56dfafd0c42a3a3ef109"; // Replace with your M2X API key +const char feed[] = "d3ffd3ab9f659943e2302ba232acf198"; // Replace with your blueprint Feed ID const char tempStream[] = "temperature"; // Replace with your stream name const char humStream[] = "humidity"; // Replace with your stream name const char accStream[] = "acceleration"; // Replace with your stream name @@ -48,7 +48,7 @@ int main() { - /* Set the console terminal to 115200 bps. */ + /* Set the console terminal to 9600 bps. */ pc.baud(CONSOLE_BAUD); /* Instantiate the X-CUBE-MEMS Library. */
diff -r db24f1dae4a4 -r 276e4607719f target_config.h --- a/target_config.h Thu Dec 11 20:56:33 2014 +0000 +++ b/target_config.h Thu Dec 11 21:27:59 2014 +0000 @@ -12,7 +12,7 @@ // The BAUD rate your PC/MAC/Linux terminal uses with the eval board -#define CONSOLE_BAUD 115200 +#define CONSOLE_BAUD 9600 // Uncomment this to enable WiConnect serial interface hardware flow control