
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 31:4a36566b5385, committed 2017-09-28
- Comitter:
- rob.meades@u-blox.com
- Date:
- Thu Sep 28 09:22:35 2017 +0100
- Parent:
- 30:4e55e975dd0b
- Child:
- 32:bdc45c7052cc
- Commit message:
- Clarify comments.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Sep 14 11:06:41 2017 +0100 +++ b/main.cpp Thu Sep 28 09:22:35 2017 +0100 @@ -19,9 +19,9 @@ #include "UbloxPPPCellularInterface.h" #include "UbloxATCellularInterfaceN2xx.h" -// You must select the correct interface library for your board, -// where supported combinations are indicated with a "Y" in the -// table below. +// 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 // UbloxPPPCellularInterface Y - Y @@ -140,8 +140,10 @@ INTERFACE_CLASS *interface = new INTERFACE_CLASS(); // If you need to debug the cellular interface, comment out the // instantiation above and uncomment the one below. + // For the N2xx interface, change xxx to MBED_CONF_UBLOX_CELL_BAUD_RATE, + // while for the non-N2xx interface change it to MBED_CONF_UBLOX_CELL_N2XX_BAUD_RATE. // INTERFACE_CLASS *interface = new INTERFACE_CLASS(MDMTXD, MDMRXD, -// MBED_CONF_UBLOX_CELL_BAUD_RATE, +// xxx, // true); #ifndef TARGET_UBLOX_C030_N211 TCPSocket sockTcp;