Added monitoring feature of ESP8266's UART

Dependents:   ESP8266_W7500_Example DualNetworkInterface-Basic

Fork of ESP8266Interface by ESP8266

Revision:
14:4d1128f72e00
Parent:
13:41098c907200
Child:
15:37a7a56a424f
--- a/ESP8266/ESP8266.cpp	Sun Nov 30 21:14:09 2014 +0000
+++ b/ESP8266/ESP8266.cpp	Sun Nov 30 21:37:16 2014 +0000
@@ -137,6 +137,10 @@
     return true;
 }
 
+char* ESP8266::getIPAddress()
+{
+    return ipString;
+}
 
 void ESP8266::reset()
 {
@@ -169,7 +173,7 @@
 
 char ESP8266::getc()
 {
-    char c;
+    char c=0;
     while (!buf_ESP8266.available());
     buf_ESP8266.dequeue(&c);
     return c;