example-ublox-cellular-interface_test
Dependencies: ublox-at-cellular-interface ublox-cellular-base ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx
Revision 13:d31b8735cca8, committed 2017-06-15
- Comitter:
- rob.meades@u-blox.com
- Date:
- Thu Jun 15 14:07:59 2017 +0100
- Parent:
- 12:46a46a1468a1
- Child:
- 14:34e1821a6b6e
- Child:
- 18:f7fc76325aa6
- Commit message:
- Cosmetic changes to main() and update library versions.
Changed in this revision
--- a/main.cpp Wed Jun 14 12:57:26 2017 +0000
+++ b/main.cpp Thu Jun 15 14:07:59 2017 +0100
@@ -18,8 +18,8 @@
#include "UbloxATCellularInterface.h"
#include "UbloxPPPCellularInterface.h"
-// If you wish to use LWIP and the PPP cellular interface, select
-// the line UbloxPPPCellularInterface, otherwise select the line
+// If you wish to use LWIP and the PPP cellular interface on the mbed
+// MCU, select the line UbloxPPPCellularInterface instead of the line
// UbloxATCellularInterface. Using the AT cellular interface does not
// require LWIP and hence uses less RAM (significant on C027). It also
// allows other AT command operations (e.g. sending an SMS) to happen
@@ -109,10 +109,11 @@
}
/* This example program for the u-blox C030 and C027 boards instantiates
- * 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.
+ * the UbloxAtCellularInterface or UbloxPPPCellularInterface 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
@@ -232,7 +233,9 @@
printf("Socket closed.\n");
}
wait_ms(5000);
+#ifndef TARGET_UBLOX_C027
printf("[Checking if user button has been pressed]\n");
+#endif
}
pulseEvent();
--- a/ublox-at-cellular-interface.lib Wed Jun 14 12:57:26 2017 +0000 +++ b/ublox-at-cellular-interface.lib Thu Jun 15 14:07:59 2017 +0100 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ublox/code/ublox-at-cellular-interface/#f6706249d076 +https://developer.mbed.org/teams/ublox/code/ublox-at-cellular-interface/#63dad754c267
--- a/ublox-ppp-cellular-interface.lib Wed Jun 14 12:57:26 2017 +0000 +++ b/ublox-ppp-cellular-interface.lib Thu Jun 15 14:07:59 2017 +0100 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ublox/code/ublox-ppp-cellular-interface/#44dd95724bc2 +https://developer.mbed.org/teams/ublox/code/ublox-ppp-cellular-interface/#80ec3fccad9e