I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X

Dependencies:   WncControllerK64F

Revision:
7:fded23f50479
Parent:
1:e511ea8d39d5
Child:
9:9f0578ff157a
--- a/Socket/Endpoint.cpp	Wed Sep 28 00:17:57 2016 +0000
+++ b/Socket/Endpoint.cpp	Thu Oct 06 21:17:18 2016 +0000
@@ -58,14 +58,15 @@
             (unsigned int*)&address[0], (unsigned int*)&address[1],
             (unsigned int*)&address[2], (unsigned int*)&address[3]);
 
+    M_LOCK;
     if (rslt != 4)    // No, need to resolve address with DNS
         WNCInterface::_pwnc->resolveUrl(0,host);
     else
         WNCInterface::_pwnc->setIpAddr(0,host);
     
     rslt = WNCInterface::_pwnc->getIpAddr(0,_epAddr.IP);
-    
-   return rslt;
+    M_ULOCK;
+    return rslt;
 }
 
 char* Endpoint::get_address() {