This class adds HTTP, FTP and CellLocate client support for u-blox modules for the C027 and C030 boards (excepting the C030 N2xx flavour) from mbed 5.5 onwards. The HTTP, FTP and CellLocate operations are all hosted on the module, minimizing RAM consumption in the mbed MCU. It also sub-classes ublox-cellular-driver-gen to bring in SMS, USSD and modem file system support if you need to use these functions at the same time as the cellular interface.
Dependencies: ublox-at-cellular-interface
Dependents: example-ublox-at-cellular-interface-ext HelloMQTT ublox_new_driver_test example-ublox-at-cellular-interface-ext ... more
Diff: TESTS/unit_tests/cell-locate/main.cpp
- Revision:
- 11:3631f62bb359
- Parent:
- 5:9fd89567f769
- Child:
- 35:6a6ee1adff84
--- a/TESTS/unit_tests/cell-locate/main.cpp Tue Jun 13 10:46:08 2017 +0100 +++ b/TESTS/unit_tests/cell-locate/main.cpp Fri Jun 16 00:55:19 2017 +0100 @@ -36,11 +36,16 @@ // } //} +// Whether debug trace is on +#ifndef MBED_CONF_APP_DEBUG_ON +# define MBED_CONF_APP_DEBUG_ON false +#endif + // The credentials of the SIM in the board. #ifndef MBED_CONF_APP_DEFAULT_PIN -// Note: this is the PIN for the SIM with ICCID -// 8944501104169548380. -# define MBED_CONF_APP_DEFAULT_PIN "5134" +// Note: if PIN is enabled on your SIM, you must define the PIN +// for your SIM jere (e.g. using mbed_app.json to do so). +# define MBED_CONF_APP_DEFAULT_PIN "0000" #endif // Network credentials. @@ -96,14 +101,14 @@ #ifdef TARGET_UBLOX_C030 static DigitalInOut gnssEnable(GNSSEN, PIN_OUTPUT, PushPullNoPull, 1); #elif TARGET_UBLOX_C027 -static DigitalOut gnssEnable(GNSSEN, 1); +static DigitalOut gnssEnable(GPSEN, 1); #endif // An instance of the cellular interface static UbloxATCellularInterfaceExt *pDriver = new UbloxATCellularInterfaceExt(MDMTXD, MDMRXD, MBED_CONF_UBLOX_CELL_BAUD_RATE, - true); + MBED_CONF_APP_DEBUG_ON); // ---------------------------------------------------------------- // PRIVATE FUNCTIONS