I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X
Dependencies: WncControllerK64F
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; }