modified to get more signal info

Dependencies:   WncControllerK64F

Fork of WNC14A2AInterface by Avnet

Revision:
5:d197692c4447
Parent:
1:f925e07b044d
Child:
6:7fd9e590c4e7
--- a/WNC14A2AInterface.cpp	Tue Apr 18 00:51:51 2017 +0000
+++ b/WNC14A2AInterface.cpp	Wed Apr 19 01:05:21 2017 +0000
@@ -56,7 +56,7 @@
 //          NSAPI_ERROR_UNSUPPORTED when attempting to create a second object
 //
 
-WNC14A2AInterface::WNC14A2AInterface(BufferedSerial *_dbg) : 
+WNC14A2AInterface::WNC14A2AInterface(BufferedSerial *dbg) : 
  m_wncpoweredup(0),
  _pwnc(NULL),
  m_active_socket(-1),
@@ -80,10 +80,10 @@
     
     memset(_mac_address,0x00,sizeof(_mac_address));
 
-    _debugUart = _dbg;
-    if( _dbg != NULL ) {
-        _dbg->printf("Adding DEBUG output\n");
-        _pwnc = new WncControllerK64F(&wncPinList, &mdmUart, _dbg);
+    _debugUart = dbg;
+    if( dbg != NULL ) {
+        dbg->printf("Adding DEBUG output\n");
+        _pwnc = new WncControllerK64F(&wncPinList, &mdmUart, dbg);
         m_debug=true;
         if( _pwnc ) 
             _pwnc->enableDebug(1,1);
@@ -167,7 +167,7 @@
  *
  * Return: pointer to the IP string or NULL 
  */
-const char *WNC14A2AInterface::get_my_ip_address()
+const char *WNC14A2AInterface::get_ip_address()
 {
     const char *ptr=NULL; 
 
@@ -181,6 +181,7 @@
     return ptr;
 }
 
+#if 0
 /*--------------------------------------------------------------------------
  * This function calls the WNC to retrieve the currently connected IP address
  * it will be a bogus 192.168.0.1 if we are not connected to anyone
@@ -206,6 +207,7 @@
     _errors=NSAPI_ERROR_NO_CONNECTION;
     return ptr;
 }
+#endif
 
 /* -------------------------------------------------------------------------
  * Open a socket for the WNC.  This doesn't actually open the socket within