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@13:99c72ab600c9, 2019-04-18 (annotated)
- Committer:
- ng977t
- Date:
- Thu Apr 18 22:58:31 2019 +0000
- Revision:
- 13:99c72ab600c9
- Parent:
- 12:0dfd0129f75d
I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X
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 | |
ng977t | 12:0dfd0129f75d | 3 | char deviceId[33] = "133e6c5b0d080a7cb1254953672c196d"; // Device you want to post to |
ng977t | 12:0dfd0129f75d | 4 | char m2xKey[33] = "98455921dc4f99acb5df31951ce97621"; // Your M2X API Key or Master API Key |
jk431j | 7:721eb6bb68d3 | 5 | |
ng977t | 12:0dfd0129f75d | 6 | // These are the streams built into the M2X DevLab |
jk431j | 7:721eb6bb68d3 | 7 | const char* hStreamName = "humidity"; // Humidity stream ID |
jk431j | 7:721eb6bb68d3 | 8 | const char* tStreamName = "temp"; // Temperature stream ID |
jk431j | 7:721eb6bb68d3 | 9 | const char* accelStreamNames[] = { "accelX", "accelY", "accelZ" }; // Accelerometer stream IDs |
ng977t | 12:0dfd0129f75d | 10 | // These are the streams added by Nathen Gallardojohnson, for troubleshooting 4G issues |
ng977t | 12:0dfd0129f75d | 11 | const char* lStreamName = "latency"; // Latency stream ID |
ng977t | 12:0dfd0129f75d | 12 | const char* sStreamName = "signal"; // Signal Strength stream ID |
ng977t | 12:0dfd0129f75d | 13 | const char* eStreamName = "error"; // Signal Error Rate stream ID |
ng977t | 12:0dfd0129f75d | 14 | const char* nStreamName = "neighbor"; // Tower Identifying stream ID |
jk431j | 7:721eb6bb68d3 | 15 | |
jk431j | 10:a8495b430849 | 16 | int commandDelay = 10; // how many seconds we should wait between polling for a command |
jk431j | 10:a8495b430849 | 17 | int commandPolls = 6; // how many times we should poll for a command |
jk431j | 7:721eb6bb68d3 | 18 | // these two also define how often we will be sending the data to M2X, |
ng977t | 12:0dfd0129f75d | 19 | // the interval is commandPolls * commandDelay seconds, the default is 60 seconds (6 * 10 = 60s) |