![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: main.cpp
- Revision:
- 1:1c840717deea
- Parent:
- 0:62feed0f1fd9
- Child:
- 2:eb0768c06c1b
diff -r 62feed0f1fd9 -r 1c840717deea main.cpp --- a/main.cpp Wed Sep 21 16:22:43 2016 +0000 +++ b/main.cpp Tue Sep 27 20:02:21 2016 +0000 @@ -39,6 +39,7 @@ Client client; M2XStreamClient m2xClient(&client, m2xKey); TimeService timeService(&m2xClient); +MODSERIAL pc(USBTX,USBRX,256,256); void on_data_point_found(const char* at, const char* value, int index, void* context, int type) { printf(">>Found a data point, index: %d type: %d" CRLF, index, type); @@ -72,6 +73,7 @@ double temp=0.00; //we will just increment these 0.01 each time through the loop double humid=0.00; //we will just increment these 1 each time through the loop wrapping at 100 + pc.baud(115200); printf("Start m2x-demo-all by initializng the network" CRLF); response = eth.init(); printf("WNC Module %s initialized (%02X)." CRLF, response?"IS":"IS NOT", response);