Sample code for AT&T IoT Services DevLab with IoT StarterKit.
Dependencies: FXOS8700CQ M2XStreamClient-JMF WNCInterface jsonlite mbed-rtos mbed
Fork of WNCInterface_M2Xdemo by
Diff: config_me.h
- Revision:
- 7:721eb6bb68d3
- Child:
- 8:b82d330e10e9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config_me.h Thu Apr 06 03:39:06 2017 +0000 @@ -0,0 +1,13 @@ +// Configure all M2X related values here + +const char* deviceId = "beefbeefbeefbeefbeefbeefbeefbeef"; // Device you want to post to +const char* m2xKey = "cafecafecafecafecafecafecafecafe"; // Your M2X API Key or Master API Key + +const char* hStreamName = "humidity"; // Humidity stream ID +const char* tStreamName = "temp"; // Temperature stream ID +const char* accelStreamNames[] = { "accelX", "accelY", "accelZ" }; // Accelerometer stream IDs + +const int commandDelay = 10; // how many seconds we should wait between polling for a command +const int commandPolls = 6; // how many times we should poll for a command +// these two also define how often we will be sending the data to M2X, +// the interval is commandPolls * commandDelay seconds, the default is 60 seconds (6 * 10 = 60s) \ No newline at end of file