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:
41:b94a1f410e71
Parent:
40:295099ff5338
Child:
74:208e3e32d263
--- a/Pipe.h	Fri Apr 11 19:39:08 2014 +0000
+++ b/Pipe.h	Fri Apr 11 19:41:05 2014 +0000
@@ -24,7 +24,7 @@
     /** Destructor 
         frees a allocated buffer.
     */
-    virtual ~Pipe(void)
+    ~Pipe(void)
     {
         if (_a) 
             delete [] _a;
@@ -129,7 +129,7 @@
     /** Get the number of values available in the buffer
         return the number of element available
     */
-    virtual int size(void)
+    int size(void)
     {
         int s = _w - _r;
         if (s < 0)
@@ -156,7 +156,7 @@
         \param t set to true if blocking, false otherwise
         \return number elements extracted
     */
-    virtual int get(T* p, int n, bool t = false)
+    int get(T* p, int n, bool t = false)
     {
         int c = n;
         while (c)
@@ -191,7 +191,7 @@
         \param ix the index to set.
         \return the number of elements starting at this position 
     */
-    virtual int set(int ix) 
+    int set(int ix) 
     {
         int sz = size();
         ix = (ix > sz) ? sz : ix;
@@ -202,7 +202,7 @@
     /** get the next element from parsing position and increment parsing index
         \return the extracted element.
     */
-    virtual T next(void)
+    T next(void)
     {
         int o = _o;
         T t = _b[o]; 
@@ -212,7 +212,7 @@
     
     /** commit the index, mrk the current parsing index as consumed data.
     */
-    virtual void done(void) 
+    void done(void) 
     {
         _r = _o; 
     }