Added monitoring feature of ESP8266's UART

Dependents:   ESP8266_W7500_Example DualNetworkInterface-Basic

Fork of ESP8266Interface by ESP8266

Revision:
23:de9221771e96
Parent:
22:c4360e61486a
Child:
24:03585a13ff3b
--- a/ESP8266/ESP8266.cpp	Tue Dec 02 16:02:21 2014 +0000
+++ b/ESP8266/ESP8266.cpp	Mon Dec 08 00:53:07 2014 +0000
@@ -73,6 +73,7 @@
 
 bool ESP8266::join()
 {
+    sendCommand( "AT+CWMODE=1", "change", NULL, 1000);
     string cmd="AT+CWJAP=\""+(string)this->ssid+"\",\""+(string)this->phrase+"\"";
     if( sendCommand( cmd.c_str(), "OK", NULL, 10000) ){
         // successfully joined the network