ACKme WiFi module + Nucleo MEMS module example. Connect and publish sensor data to M2X.
Dependencies: M2XStreamClient WiConnect Nucleo_Sensor_Shield jsonlite mbed
Fork of m2x-MEMS_ACKme_Wifi_demo by
Diff: main.cpp
- Revision:
- 1:276e4607719f
- Parent:
- 0:db24f1dae4a4
- Child:
- 2:e277cdbabbb2
--- 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. */