mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: source/mbedEndpointNetwork.cpp
- Revision:
- 56:3f233795dddf
- Parent:
- 54:dfee8691c83a
- Child:
- 61:d02cd5e2bb26
diff -r fdb11bfada5f -r 3f233795dddf source/mbedEndpointNetwork.cpp --- a/source/mbedEndpointNetwork.cpp Tue Aug 09 18:44:58 2016 +0000 +++ b/source/mbedEndpointNetwork.cpp Tue Aug 09 18:47:59 2016 +0000 @@ -38,12 +38,12 @@ #define NETWORK_TYPE "Ethernet" #include "EthernetInterface.h" EthernetInterface network; -#elif MBED_CONF_APP_NETWORK_INTERFACE == LOWPAN_ND +#elif MBED_CONF_APP_NETWORK_INTERFACE == MESH_LOWPAN_ND #define NETWORK_TYPE "6LowPAN" #define MESH #include "NanostackInterface.h" LoWPANNDInterface network; -#elif MBED_CONF_APP_NETWORK_INTERFACE == THREAD +#elif MBED_CONF_APP_NETWORK_INTERFACE == MESH_THREAD #define NETWORK_TYPE "ThreadMesh" #define MESH #include "NanostackInterface.h" @@ -173,7 +173,7 @@ // Network Init (WIFI)... connected = network.connect(options->getWiFiSSID().c_str(),options->getWiFiAuthKey().c_str(),security_opt); -#elif MBED_CONF_APP_NETWORK_INTERFACE == LOWPAN_ND || MBED_CONF_APP_NETWORK_INTERFACE == THREAD +#elif MBED_CONF_APP_NETWORK_INTERFACE == MESH_LOWPAN_ND || MBED_CONF_APP_NETWORK_INTERFACE == MESH_THREAD // Set the IP Address type to IPV6 ((Connector::OptionsBuilder *)options)->setIPAddressType(IP_ADDRESS_TYPE_IPV6);