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:
12:684b31d5482b
Parent:
11:b084552b03fe
Child:
13:e2446fcdc246
--- a/SerialPipe.cpp	Thu Nov 14 15:52:36 2013 +0000
+++ b/SerialPipe.cpp	Fri Nov 15 13:33:39 2013 +0000
@@ -86,8 +86,10 @@
         i ++;
         if (t == '\r')     // terminate commands with carriage return
         {
-             _pipeRx.done();
-             return o;          // if enter send the zero char
+            _pipeRx.done();
+            if (s > o)
+                b[o] = '\0';
+            return o;          // if enter send the zero char
         }
         else if (t == '\n')     // skip/filter new line 
              /* skip */;
@@ -97,5 +99,7 @@
             o --;               // remove it
     }
     o = 0;
+    if (s > 0)
+        b[0] = '\0';
     return WAIT;
 }