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.
Fork of ESP8266Interface by
Diff: ESP8266Interface.cpp
- Revision:
- 20:5d0762aa4680
- Parent:
- 19:783c46b13285
- Child:
- 22:312453862371
diff -r 783c46b13285 -r 5d0762aa4680 ESP8266Interface.cpp --- a/ESP8266Interface.cpp Tue Jul 21 19:54:52 2015 +0000 +++ b/ESP8266Interface.cpp Tue Jul 21 20:16:36 2015 +0000 @@ -76,8 +76,7 @@ char *ESP8266Interface::getIPAddress(void) { - char* ip; - if (!(atParser.send("AT+CIPSTA?") && atParser.recv("+CIPSTA:\"%s\"\r\nOK", ip))) + if (!(atParser.send("AT+CIPSTA?") && atParser.recv("+CIPSTA:\"%[^\"]\"", ip))) return NULL; return ip; }