Version of easy-connect with the u-blox cellular platforms C027 and C030 added.
Diff: easy-connect.h
- Revision:
- 3:1ee51369146a
- Parent:
- 0:19aa55d66228
- Child:
- 4:72079f2401ea
diff -r 1ee641ba6682 -r 1ee51369146a easy-connect.h --- a/easy-connect.h Thu Aug 10 14:38:36 2017 +0000 +++ b/easy-connect.h Thu Aug 10 16:04:16 2017 +0100 @@ -9,7 +9,7 @@ #define MESH_THREAD 4 #define WIFI_ODIN 5 #define WIFI_REALTEK 6 -#define CELLULAR_C030 7 +#define CELLULAR_UBLOX 7 #if MBED_CONF_APP_NETWORK_INTERFACE == WIFI_ESP8266 #include "ESP8266Interface.h" @@ -94,7 +94,8 @@ * MAC address is print, if it can be acquired & log_messages is true. * */ -void print_MAC(NetworkInterface* network_interface, bool log_messages) { +void print_MAC(NetworkInterface* network_interface, bool log_messages) { +#if MBED_CONF_APP_NETWORK_INTERFACE != CELLULAR_UBLOX const char *mac_addr = network_interface->get_mac_address(); if (mac_addr == NULL) { if (log_messages) { @@ -105,6 +106,7 @@ if (log_messages) { printf("[EasyConnect] MAC address %s\n", mac_addr); } +#endif }