for testing wifi
Fork of ESP8266Interface by
Diff: ESP8266/ESP8266.cpp
- Revision:
- 51:e37b1643f58a
- Parent:
- 49:2c05d747bb91
--- a/ESP8266/ESP8266.cpp Tue Jul 14 09:09:55 2015 +0000 +++ b/ESP8266/ESP8266.cpp Tue Jun 28 03:34:57 2016 +0000 @@ -71,6 +71,7 @@ // successfully joined the network state.associated = true; INFO("ssid: %s, phrase: %s", this->ssid, this->phrase); + return true; } return false; @@ -286,10 +287,10 @@ reset_pin = 0; wait_us(20); reset_pin = 1; - //wait(1); + wait(1); //reset_pin = !reset_pin //send("+++",3); - wait(1); + //wait(1); state.cmdMode = true; sendCommand("AT", "OK", NULL, 1000); sendCommand("AT+RST", "ready", NULL, 10000); @@ -367,7 +368,9 @@ } const char* bufptr=buf; for(int i=0; i<len; i++) { + //pc.printf("%c", *bufptr); putc((int)*bufptr++); + } return len; }