Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ATParser
Fork of ESP8266 by
Diff: ESP8266.cpp
- Revision:
- 16:f886ef3f2297
- Parent:
- 15:640a262a93e1
- Child:
- 17:8b541b19f391
diff -r 640a262a93e1 -r f886ef3f2297 ESP8266.cpp
--- a/ESP8266.cpp Mon Feb 01 22:17:08 2016 +0000
+++ b/ESP8266.cpp Tue Feb 02 22:21:55 2016 +0000
@@ -82,9 +82,7 @@
bool ESP8266::getIPAddress(char* ip)
{
- return (atParser.send("AT+CIPSTA?")
- && atParser.recv("+CIPSTA:ip:\"%[^\"]\"", ip)
- && atParser.recv("OK"));
+ return (atParser.send("AT+CIPSTA?") && atParser.recv("+CIPSTA:\"%[^\"]\"", ip));
}
bool ESP8266::isConnected(void)
