example-ublox-cellular-interface

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

Revision:
38:e09e02c31ba1
Parent:
37:98338956aaba
Child:
43:c8ae646bed51
--- a/main.cpp	Tue Jun 11 16:06:21 2019 +0500
+++ b/main.cpp	Thu Jun 13 15:51:38 2019 +0500
@@ -15,30 +15,25 @@
  */
 #include "mbed.h"
 #include "UbloxATCellularInterface.h"
-#include "CellularContext.h"
 #include "UbloxATCellularInterfaceN2xx.h"
 
 // You must select the correct interface library for your board, by
 // uncommenting the correct line below. Supported combinations are
 // indicated with a "Y" in the table below.
 //
-//                            C030_U201   C030_N211      C027
-// UbloxATCellularInterface       Y            -           Y
-// OnboardCellularInterface       Y            -           Y
-// UbloxATCellularInterfaceN2xx   -            Y           -
+//                            C030_U201   C030_N211      C027     C030_R41XM
+// UbloxATCellularInterface       Y            -           Y          Y
+// UbloxATCellularInterfaceN2xx   -            Y           -          -
 // Note: the N211 module supports only UDP, not TCP
 
-// OnboardCellularInterface uses LWIP and the PPP cellular interface
-// on the mbed MCU, while using UbloxATCellularInterface and
-// UbloxATCellularInterfaceN2xx uses an IP stack on the cellular
-// module and hence uses less RAM (significant on C027).  This also
-// allows other AT command operations (e.g. sending an SMS) to happen
+// UbloxATCellularInterface and UbloxATCellularInterfaceN2xx
+// uses an IP stack on the cellular module and hence uses less RAM (significant on C027).
+// This also allows other AT command operations (e.g. sending an SMS) to happen
 // during a data transfer (for which you should replace the
 // UbloxATCellularInterface library with the UbloxATCellularInterfaceExt
 // library).  However, it is slower than using the LWIP/PPP on the mbed
 // MCU interface since more string parsing is required.
 #define INTERFACE_CLASS  UbloxATCellularInterface
-//#define INTERFACE_CLASS  OnboardCellularInterface
 //#define INTERFACE_CLASS  UbloxATCellularInterfaceN2xx
 
 // The credentials of the SIM in the board.  If PIN checking is enabled
@@ -120,15 +115,13 @@
 static void cbButton()
 {
     buttonPressed = true;
-    pulseEvent();
 }
 
 /* This example program for the u-blox C030 and C027 boards instantiates
- * the UbloxATCellularInterface or OnboardCellularInterface and uses it
- * to make a simple sockets connection to a server, using 2.pool.ntp.org
- * for UDP and developer.mbed.org for TCP.  For a more comprehensive example,
- * where higher layer protocols make use of the same sockets interface,
- * see example-ublox-mbed-client.
+ * the UbloxATCellularInterface and uses it to make a simple sockets
+ * connection to a server, using 2.pool.ntp.org for UDP and developer.mbed.org for TCP.
+ * For a more comprehensive example, where higher layer protocols
+ * make use of the same sockets interface, see example-ublox-mbed-client.
  * Progress may be monitored with a serial terminal running at 9600 baud.
  * The LED on the C030 board will turn green when this program is
  * operating correctly, pulse blue when a sockets operation is completed