Example program that uses the mbed UbloxATCellularInterface or OnboardCellularInterface classes to perform simple sockets operations. This program can be used on the C027 and C030 boards, including the C030 N2xx version with a little editing.

Dependencies:   ublox-at-cellular-interface ublox-cellular-base ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx

Revision:
10:1f35371d572d
Parent:
8:3e170c40a284
Child:
13:d31b8735cca8
--- a/main.cpp	Wed Jun 14 09:30:51 2017 +0000
+++ b/main.cpp	Wed Jun 14 10:28:45 2017 +0000
@@ -21,7 +21,7 @@
 // If you wish to use LWIP and the PPP cellular interface, select
 // the line UbloxPPPCellularInterface, otherwise select the line
 // UbloxATCellularInterface.  Using the AT cellular interface does not
-// require LWIP and hence uses less RAM (significant on C027.  It also
+// require LWIP and hence uses less RAM (significant on C027).  It also
 // allows other AT command operations (e.g. sending an SMS) to happen
 // during a data transfer.
 #define INTERFACE_CLASS  UbloxATCellularInterface
@@ -121,7 +121,7 @@
 
 int main()
 {
-    INTERFACE_CLASS *interface = new UbloxATCellularInterface();
+    INTERFACE_CLASS *interface = new INTERFACE_CLASS();
     // If you need to debug the cellular interface, comment out the
     // instantiation above and uncomment the one below.
 //    INTERFACE_CLASS *interface = new INTERFACE_CLASS(MDMTXD, MDMRXD,