test
Fork of ESP8266 by
Diff: ESP8266.cpp
- Revision:
- 15:640a262a93e1
- Parent:
- 14:13cef05d740c
- Child:
- 16:f886ef3f2297
--- a/ESP8266.cpp Mon Dec 28 05:38:00 2015 +0000 +++ b/ESP8266.cpp Mon Feb 01 22:17:08 2016 +0000 @@ -82,7 +82,9 @@ bool ESP8266::getIPAddress(char* ip) { - return (atParser.send("AT+CIPSTA?") && atParser.recv("+CIPSTA:\"%[^\"]\"", ip)); + return (atParser.send("AT+CIPSTA?") + && atParser.recv("+CIPSTA:ip:\"%[^\"]\"", ip) + && atParser.recv("OK")); } bool ESP8266::isConnected(void)