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 ublox-cellular-base
Diff: main.cpp
- Revision:
- 16:6ce2f11ceb3f
- Parent:
- 13:f5b874c31495
diff -r d93358925e8e -r 6ce2f11ceb3f main.cpp
--- a/main.cpp Fri Oct 04 16:25:31 2019 +0500
+++ b/main.cpp Mon Oct 07 07:16:57 2019 +0000
@@ -29,7 +29,7 @@
#define PIN "0000"
// Default network interface object. Don't forget to change the WiFi SSID/password in mbed_app.json if you're using WiFi.
-NetworkInterface *net = NetworkInterface::get_default_instance();
+NetworkInterface *net;
// Default block device available on the target board
BlockDevice *bd = BlockDevice::get_default_instance();
@@ -137,7 +137,7 @@
// Connect to the Internet (DHCP is expected to be on)
printf("Connecting to the network using the default network interface...\n");
-#ifdef TARGET_UBLOX_C030_R41XM
+#if !NSAPI_PPP_AVAILABLE
net = new UbloxATCellularInterface();
if (((UbloxATCellularInterface*)net)->init(PIN)) {