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:
13:4c014a7f0c63
Parent:
12:2c5afb36bc8c
Child:
14:13cef05d740c
--- a/ESP8266.cpp	Mon Jul 27 15:25:47 2015 +0000
+++ b/ESP8266.cpp	Wed Aug 05 21:57:41 2015 +0000
@@ -116,10 +116,12 @@
     sprintf(lenstr,"%d",(int)amount);
 
     string send_command = "AT+CIPSEND="+(string)idstr+","+(string)lenstr;
-    if(!atParser.send(send_command.c_str(), ">")) {
+    if(!atParser.send(send_command.c_str(),">")) {
         return false;
     }
+    wait_ms(10);
     atParser.write((char*)data, (int)amount);
+    wait_ms(10);
     return true;
 }