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:
2:b6012cd91657
Parent:
0:cb2d45baaca3
Child:
5:5362073f2689
diff -r f41579f4e2ed -r b6012cd91657 Pipe.h
--- a/Pipe.h	Mon Oct 21 19:46:34 2013 +0000
+++ b/Pipe.h	Fri Oct 25 08:47:22 2013 +0000
@@ -76,7 +76,7 @@
         return (r != w);
     }
     //! get the number of values avialable in the buffer 
-    int size(void)
+    virtual int size(void)
     {
         int t = w - r;
         if (t < 0)
@@ -93,7 +93,7 @@
         return t;
     }
     // get values from buffer (if the buffer has less values, only the values avilable are returned)
-    int get(T* p, int n)
+    virtual int get(T* p, int n)
     {
         int f = size();
         if (f < n)
@@ -116,9 +116,9 @@
         return n;
     }
     // the following functions are useful if you like to inspect or parse the buffer
-    int start() { o = r; return size(); }               // reset the parsing index and return the number of available elments
-    T next()    { T t = b[o]; o = _inc(o); return t; }  // get the next element and increment
-    void done() { r = o; }                              // commit the index 
+    virtual int start(void) { o = r; return size(); }               // reset the parsing index and return the number of available elments
+    virtual T next(void)    { T t = b[o]; o = _inc(o); return t; }  // get the next element and increment
+    virtual void done(void) { r = o; }                              // commit the index 
     
 private:
     // buffer