The Hiking Pal tracking device firmware. See full description on the detail page: https://www.hackster.io/bowenfeng/hiking-pal-v1-07c02d

Dependencies:   FXOS8700CQ MODSERIAL mbed

Fork of Avnet_ATT_Cellular_IOT by Avnet

Revision:
74:3e3ee15584e5
Parent:
68:6e311c747045
Child:
75:8cc98a3b9c62
--- a/cell_modem.cpp	Thu Aug 11 21:14:32 2016 +0000
+++ b/cell_modem.cpp	Sat Aug 13 15:08:11 2016 +0000
@@ -1,5 +1,5 @@
 /* ===================================================================
-Copyright © 2016, AVNET Inc.  
+Copyright c 2016, AVNET Inc.  
 
 Licensed under the Apache License, Version 2.0 (the "License"); 
 you may not use this file except in compliance with the License.
@@ -113,7 +113,12 @@
                 while (rsp_list[rsp_idx]) {
                     if (strcasecmp(rsp, rsp_list[rsp_idx]) == 0) {
                         return rsp_idx;
-                    }
+                    } else if (strncmp(rsp, "@EXTERR", 7) == 0){
+                        pc.printf("----- We got EXTERR ---\r\n");
+                        return 2;    
+                    } else if (strncmp(rsp, "+CME", 4) == 0){
+                        return 3;    
+                    } 
                     rsp_idx++;
                 }
             }
@@ -220,7 +225,12 @@
             while (rsp_list[rsp_idx]) {
                 if (strcasecmp(cmd_buf, rsp_list[rsp_idx]) == 0) {
                     return rsp_idx;
-                }
+                } else if (strncmp(cmd_buf, "@EXTERR", 7) == 0){
+                    pc.printf("----- We got EXTERR ---\r\n");
+                    return 2;    
+                } else if (strncmp(cmd_buf, "+CME", 4) == 0){
+                    return 3;    
+                } 
                 rsp_idx++;
             }
         }
@@ -332,4 +342,3 @@
     }
     return iStatus;
 }
-