Version of easy-connect with the u-blox cellular platforms C027 and C030 added.
Diff: easy-connect.h
- Revision:
- 4:72079f2401ea
- Parent:
- 3:1ee51369146a
- Child:
- 5:9da11cf868d9
--- a/easy-connect.h Thu Aug 10 16:04:16 2017 +0100 +++ b/easy-connect.h Thu Aug 10 17:39:57 2017 +0100 @@ -149,11 +149,11 @@ #elif MBED_CONF_APP_NETWORK_INTERFACE == CELLULAR_UBLOX if (log_messages) { printf("[EasyConnect] Using Cellular (u-blox) \n"); -#if MBED_CONF_APP_APN - printf("[EasyConnect] Connecting to Cellular %s\n", MBED_CONF_APP_APN); -#else - printf("[EasyConnect] Connecting to Cellular\n"); -#endif + if (strlen(MBED_CONF_APP_APN) > 0) { + printf("[EasyConnect] Connecting to Cellular %s\n", MBED_CONF_APP_APN); + } else { + printf("[EasyConnect] Connecting to Cellular\n"); + } } network_interface = &cellular; connect_success = cellular.connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD);