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
Revision 15:640a262a93e1, committed 2016-02-01
- Comitter:
- geky
- Date:
- Mon Feb 01 22:17:08 2016 +0000
- Parent:
- 14:13cef05d740c
- Child:
- 16:f886ef3f2297
- Commit message:
- Updated IP AT command for new firmware
Changed in this revision
| ESP8266.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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)
