Driver for the ESP8266 WiFi module using ATParser library. Espressif Firmware.
Dependencies: ATParser
Fork of ESP8266 by
Note
This library assumes your ESP8266 is running the Espressif Firmware. For instructions on how to update your ESP8266 to use the correct firmware see the Firmware Update Wiki Page.
Diff: ESP8266.cpp
- Revision:
- 15:640a262a93e1
- Parent:
- 14:13cef05d740c
- Child:
- 16:f886ef3f2297
diff -r 13cef05d740c -r 640a262a93e1 ESP8266.cpp --- 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)