The WDCInterface is is a drop-in replacement for an EthernetInterface class that allows the user to connect to the Internet with a Wistron NeWeb Corporation (WNC) M14A2A Series data module using the standard network Socket API's. This interface class is used in the AT&T Cellular IoT Starter Kit which is sold by Avnet (http://cloudconnectkits.org/product/att-cellular-iot-starter-kit).
Dependencies: WncControllerK64F
Dependents: WNCProximityMqtt Pubnub_ATT_IoT_SK_WNC_sync BluemixDemo BluemixQS ... more
See the WNCInterface README in the Wiki tab for detailed information on this library.
Diff: WNCInterface.cpp
- Revision:
- 5:759dceff95b9
- Parent:
- 4:99e7aeaceae7
- Child:
- 7:fded23f50479
--- a/WNCInterface.cpp Tue Sep 27 19:22:03 2016 +0000 +++ b/WNCInterface.cpp Tue Sep 27 19:50:40 2016 +0000 @@ -85,8 +85,12 @@ int WNCInterface::init(const char* apn, MODSERIAL * debug) { int ret = 0; - if( debug ) + if( debug ) { _pwnc = new WncControllerK64F_fk::WncControllerK64F::WncControllerK64F(&wncPinList, &mdmUart, debug); +#if WNC_DEBUG == 1 + _pwnc->enableDebug(1,1); +#endif + } else _pwnc = new WncControllerK64F_fk::WncControllerK64F::WncControllerK64F(&wncPinList, &mdmUart, NULL); @@ -169,4 +173,3 @@ return NULL; } -