pengfei wu
/
ESP8266Program
For test
Diff: ESP8266.cpp
- Revision:
- 11:7bd1b2a67b1a
- Parent:
- 10:9d4ec0359a5c
- Child:
- 12:4e4e72f18047
diff -r 9d4ec0359a5c -r 7bd1b2a67b1a ESP8266.cpp --- a/ESP8266.cpp Mon Feb 02 09:46:16 2015 +0000 +++ b/ESP8266.cpp Tue Feb 03 07:31:13 2015 +0000 @@ -26,7 +26,10 @@ esp_uart.setTimeout(5000); esp_uart.println("AT+RST"); DBG("AT+RST\r\n"); + printf("0.0\r\n"); result = esp_uart.find("eady"); + printf("2.0\r\n"); + if(result) DBG("Module is ready\r\n"); else