Driver for the ESP8266 WiFi module using ATParser library. Espressif Firmware.

Dependencies:   ATParser

Dependents:   ESP8266Interface

Fork of ESP8266 by NetworkSocketAPI

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.

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)