I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X
Dependencies: mbed FXOS8700CQ mbed-rtos WNCInterface M2XStreamClient-JMF jsonlite
config_me.h@7:721eb6bb68d3, 2017-04-06 (annotated)
- Committer:
- jk431j
- Date:
- Thu Apr 06 03:39:06 2017 +0000
- Revision:
- 7:721eb6bb68d3
- Child:
- 8:b82d330e10e9
Added config_me.h, SMS handling.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jk431j | 7:721eb6bb68d3 | 1 | // Configure all M2X related values here |
jk431j | 7:721eb6bb68d3 | 2 | |
jk431j | 7:721eb6bb68d3 | 3 | const char* deviceId = "beefbeefbeefbeefbeefbeefbeefbeef"; // Device you want to post to |
jk431j | 7:721eb6bb68d3 | 4 | const char* m2xKey = "cafecafecafecafecafecafecafecafe"; // Your M2X API Key or Master API Key |
jk431j | 7:721eb6bb68d3 | 5 | |
jk431j | 7:721eb6bb68d3 | 6 | const char* hStreamName = "humidity"; // Humidity stream ID |
jk431j | 7:721eb6bb68d3 | 7 | const char* tStreamName = "temp"; // Temperature stream ID |
jk431j | 7:721eb6bb68d3 | 8 | const char* accelStreamNames[] = { "accelX", "accelY", "accelZ" }; // Accelerometer stream IDs |
jk431j | 7:721eb6bb68d3 | 9 | |
jk431j | 7:721eb6bb68d3 | 10 | const int commandDelay = 10; // how many seconds we should wait between polling for a command |
jk431j | 7:721eb6bb68d3 | 11 | const int commandPolls = 6; // how many times we should poll for a command |
jk431j | 7:721eb6bb68d3 | 12 | // these two also define how often we will be sending the data to M2X, |
jk431j | 7:721eb6bb68d3 | 13 | // the interval is commandPolls * commandDelay seconds, the default is 60 seconds (6 * 10 = 60s) |