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:
74:208e3e32d263
Parent:
41:b94a1f410e71
Child:
75:ce6e12067d0c
--- a/Pipe.h	Thu May 15 08:25:45 2014 +0000
+++ b/Pipe.h	Thu May 15 22:20:42 2014 +0000
@@ -15,7 +15,7 @@
     */
     Pipe(int n, T* b = NULL)
     {
-        _a = b ? NULL : new T[n];
+        _a = b ? NULL : n ? new T[n] : NULL;
         _r = 0;
         _w = 0;
         _b = b ? b : _a;
@@ -98,7 +98,7 @@
             for (;;) // wait for space
             {
                 f = free();
-                if (f)  break;        // data avail
+                if (f > 0) break;     // data avail
                 if (!t) return n - c; // no more space and not blocking
             }
             // check free space