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.h
- Revision:
- 8:4b38bfb1704d
- Parent:
- 7:fded23f50479
- Child:
- 9:9f0578ff157a
--- a/WNCInterface.h Thu Oct 06 21:17:18 2016 +0000
+++ b/WNCInterface.h Fri Oct 07 00:36:47 2016 +0000
@@ -79,8 +79,8 @@
#define FATAL_WNC_ERROR(v) {extern char *_fatal_err_loc;_fatal_err_loc=FATAL_STR;PFE;DORET(v);}
#endif
-#define M_LOCK WNCInterface::WNCLock->lock()
-#define M_ULOCK WNCInterface::WNCLock->unlock()
+#define M_LOCK {extern Mutex _WNCLock; _WNCLock.lock();}
+#define M_ULOCK {extern Mutex _WNCLock; _WNCLock.unlock();}
// Because the WncController has intermixed socket & interface functionallity
// will need to make the Socket class a friend of the Interface class. This
@@ -152,7 +152,6 @@
private:
static WncController_fk::WncIpStats myNetStats; //maintaint the network statistics
static WncControllerK64F_fk::WncControllerK64F *_pwnc; //pointer to the WncController instance
- static Mutex *WNCLock;
static string mac;
};

