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.

Files at this revision

API Documentation at this revision

Comitter:
walser
Date:
Thu Feb 25 13:22:34 2016 +0000
Parent:
137:6a7a5c4f35f6
Child:
139:fd9fe498f142
Commit message:
Improve connection checking of TCP socket.

Changed in this revision

Socket/TCPSocketConnection.h Show annotated file Show diff for this revision Revisions of this file
--- a/Socket/TCPSocketConnection.h	Mon Jan 25 13:30:55 2016 +0000
+++ b/Socket/TCPSocketConnection.h	Thu Feb 25 13:22:34 2016 +0000
@@ -42,7 +42,12 @@
     /** Check if the socket is connected
     \return true if connected, false otherwise.
     */
-    bool is_connected(void)                 { return _mdm->socketIsConnected(_socket); }
+    bool is_connected(void)
+    {
+        if (_socket < 0)
+            return false;
+        return _mdm->socketIsConnected(_socket);
+    }
 
     /** Send data to the remote host.
     \param data The buffer to send to the host.