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.

Files at this revision

API Documentation at this revision

Comitter:
JMF
Date:
Thu Mar 09 01:00:12 2017 +0000
Parent:
24:78d2aed96783
Child:
26:81e520908460
Commit message:
Fixed several syntax errors that were uncovered when mbed introduced a new compiler.

Changed in this revision

Socket/TCPSocketConnection.cpp Show annotated file Show diff for this revision Revisions of this file
Socket/UDPSocket.cpp Show annotated file Show diff for this revision Revisions of this file
WNCInterface.cpp Show annotated file Show diff for this revision Revisions of this file
WncControllerK64F.lib Show annotated file Show diff for this revision Revisions of this file
--- a/Socket/TCPSocketConnection.cpp	Tue Dec 06 22:51:30 2016 +0000
+++ b/Socket/TCPSocketConnection.cpp	Thu Mar 09 01:00:12 2017 +0000
@@ -65,7 +65,7 @@
  
     if( s == WncController_fk::WncController::WNC_ON ) {
       M_LOCK;
-      if( WNCInterface::_pwnc->write(0, (const std::uint8_t*)data, length) )
+      if( WNCInterface::_pwnc->write(0, (const uint8_t*)data, length) )
         ret = length;
       M_ULOCK;
       }
--- a/Socket/UDPSocket.cpp	Tue Dec 06 22:51:30 2016 +0000
+++ b/Socket/UDPSocket.cpp	Thu Mar 09 01:00:12 2017 +0000
@@ -53,7 +53,7 @@
     CHK_WNCFE(( WNCInterface::_pwnc->getWncStatus() == FATAL_FLAG ), fail);
     if( remote._epAddr.port ) {  //make sure the Endpoint has an port assoicated with it
         if( Socket::connect(remote._epAddr.IP,SOCK_DGRAM,remote._epAddr.port) ) {
-            if( WNCInterface::_pwnc->write(0,(const std::uint8_t*)packet,length) )
+            if( WNCInterface::_pwnc->write(0,(const uint8_t*)packet,length) )
                 ret = length;
             close();
         }
--- a/WNCInterface.cpp	Tue Dec 06 22:51:30 2016 +0000
+++ b/WNCInterface.cpp	Thu Mar 09 01:00:12 2017 +0000
@@ -93,13 +93,13 @@
     M_LOCK;
     if( debug ) {
         _dbgout = debug;
-        _pwnc = new WncControllerK64F_fk::WncControllerK64F::WncControllerK64F(&wncPinList, &mdmUart, debug);
+        _pwnc = new WncControllerK64F_fk::WncControllerK64F(&wncPinList, &mdmUart, debug);
 #if WNC_DEBUG == 1
     _pwnc->enableDebug(1,1);
 #endif
         }
     else
-        _pwnc = new WncControllerK64F_fk::WncControllerK64F::WncControllerK64F(&wncPinList, &mdmUart, NULL);
+        _pwnc = new WncControllerK64F_fk::WncControllerK64F(&wncPinList, &mdmUart, NULL);
 
     if( apn==NULL )
         apn = APN_DEFAULT;
--- a/WncControllerK64F.lib	Tue Dec 06 22:51:30 2016 +0000
+++ b/WncControllerK64F.lib	Thu Mar 09 01:00:12 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/fkellermavnet/code/WncControllerK64F/#7d8047f02ec9
+https://developer.mbed.org/users/fkellermavnet/code/WncControllerK64F/#36b2f37a8f52