Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
diff -r 3b24bc50cc06 -r 3631f62bb359 TESTS/unit_tests/cell-locate/main.cpp
--- 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