Embed client working with Cell network.
Dependencies: C027Interface
Fork of U_Blox_DeviceConnector by
Diff: main.cpp
- Revision:
- 64:bb80622ae5e6
- Parent:
- 49:10f84adec19e
--- a/main.cpp Thu Feb 02 19:46:23 2017 +0000 +++ b/main.cpp Thu Feb 02 21:19:33 2017 +0000 @@ -44,6 +44,9 @@ #define MESH #include "NanostackInterface.h" ThreadInterface mesh; +#elif MBED_CONF_APP_NETWORK_INTERFACE == CELL +# include "C027Interface.h" + C027Interface cell; #endif #if defined(MESH) @@ -405,6 +408,10 @@ output.printf("\n\rConnecting to ethernet...\r\n"); connect_success = eth.connect(); network_interface = ð +#elif MBED_CONF_APP_NETWORK_INTERFACE == CELL + output.printf("Using Cell\r\n"); + connect_success = cell.connect(MBED_CONF_APP_CELL_APN); + network_interface = &cell; #endif #ifdef MESH output.printf("\n\rConnecting to Mesh...\r\n");