pelion-example-common

Dependencies:   ublox-at-cellular-interface ublox-cellular-base

Revision:
16:6ce2f11ceb3f
Parent:
13:f5b874c31495
--- 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)) {