support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Dependents:   HTTPClient_Cellular_HelloWorld Cellular_HelloMQTT MbedSmartRestMain Car_Bon_car_module ... more

This library is intended to be used with u-blox products such as the C027 or a shield with u-blox cellular and GPS modules like the cellular and positioning shield from Embedded Artist.

For 2G/GSM and 3G/UMTS you need to:

  • have a SIM card and know its PIN number
  • need to know you network operators APN setting These setting should be passed to the connect or init and join functions. You can also extend the APN database in MDMAPN.h.

For CDMA products you need to make sure that you have provisioned and activated the modem with either Sprint or Verizon.

Revision:
24:0e287a85ac9e
Parent:
21:c4d64830bf02
Parent:
20:535ef78655df
Child:
31:a0bed6c1e05d
--- a/GPS.cpp	Tue Apr 08 11:11:20 2014 +0000
+++ b/GPS.cpp	Tue Apr 08 11:15:33 2014 +0000
@@ -204,10 +204,9 @@
     return false;
 }
 
-bool GPSParser::getNmeaAngle(int ix, char* buf, int len, double& d)
+bool GPSParser::getNmeaAngle(int ix, char* buf, int len, double& val)
 {
     char ch;
-    double val;
     if (getNmeaItem(ix,buf,len,val) && getNmeaItem(ix+1,buf,len,ch) && 
         ((ch == 'S') || (ch == 'N') || (ch == 'E') || (ch == 'W')))
     {
@@ -216,7 +215,6 @@
         val = (val - i) / 0.6 + i;
         if (ch == 'S' || ch == 'W')
             val = -val;
-        d = val;
         return true;
     }
     return false;