Modified example with AT command traces for AT%MEAS, AT%PCONI and AT%CGEQOS. Loading times calculated for each cloud transfer

Dependencies:   FXOS8700CQ MODSERIAL mbed

Fork of Avnet_ATT_Cellular_IOT by Avnet

Revision:
82:340a51ed8760
Parent:
78:00cca62e5d9f
--- a/cell_modem.cpp	Thu Nov 17 18:21:52 2016 +0000
+++ b/cell_modem.cpp	Thu Dec 14 00:23:22 2017 +0000
@@ -48,6 +48,8 @@
 
 #define MAX_AT_RSP_LEN                          255
 
+Timer t;
+
 ssize_t mdm_getline(char *buff, size_t size, int timeout_ms) {
     int cin = -1;
     int cin_last;
@@ -316,6 +318,7 @@
 {
     int iStatus = 0; //error by default
     PRINTF(DEF "\r\n");
+    t.start();
     PRINTF(BLU "Sending to modem : %s" DEF "\r\n", &tx_string[0]); 
     sockwrite_mdm(&tx_string[0]);
     if (sockread_mdm(&MySocketData, 1024, 20))
@@ -341,7 +344,13 @@
     {
         PRINTF(RED "No response..." DEF "\r\n");
     }
+    
+    t.stop();
+    PRINTF("loading time: %f \n",t.read());
+    PRINTF("DELIMIT");
+    t.reset();
     return iStatus;
+    
 }
 
 void display_wnc_firmware_rev(void)