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: Socket/WncEndpoint.cpp
- Revision:
- 27:2dc9461c04dc
- Parent:
- 26:81e520908460
--- a/Socket/WncEndpoint.cpp Fri Mar 24 21:43:57 2017 +0000 +++ b/Socket/WncEndpoint.cpp Fri Mar 24 21:50:50 2017 +0000 @@ -26,13 +26,13 @@ #include "WncSocket.h" #include "WncEndpoint.h" -Endpoint::Endpoint() { +WncEndpoint::WncEndpoint() { reset_address(); } -Endpoint::~Endpoint() {} +WncEndpoint::~WncEndpoint() {} -void Endpoint::reset_address(void) { +void WncEndpoint::reset_address(void) { std::memset(&_epAddr, 0, sizeof(struct EndPointAddr)); } @@ -42,7 +42,7 @@ // address. // -int Endpoint::set_address(const char* host, const int port) { +int WncEndpoint::set_address(const char* host, const int port) { // IP Address char address[5]; int rslt; @@ -68,11 +68,11 @@ return rslt; } -char* Endpoint::get_address() { +char* WncEndpoint::get_address() { return _epAddr.IP; } -int Endpoint::get_port() { +int WncEndpoint::get_port() { return _epAddr.port; }