uClimate / ESP8266_moj

Dependencies:   ArduinoAPI

Fork of WeeESP8266 by ITEAD STUDIO

Files at this revision

API Documentation at this revision

Comitter:
itead
Date:
Sat Feb 07 09:42:25 2015 +0000
Parent:
16:80c08e69c31a
Child:
18:084505f146e0
Commit message:
Fixed bug: get ipstatus command.

Changed in this revision

ESP8266.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ESP8266.cpp	Sat Feb 07 08:13:29 2015 +0000
+++ b/ESP8266.cpp	Sat Feb 07 09:42:25 2015 +0000
@@ -317,7 +317,7 @@
     
     if (has_data) {
         start = millis();
-        while (millis() - start < timeout) {
+        while (millis() - start < 3000) {
             while(m_puart->available() > 0) {
                 a = m_puart->readChr();
                 data += a;
@@ -546,6 +546,7 @@
 bool ESP8266::eATCIPSTATUS(String &list)
 {
     String data;
+    delay(100);
     m_puart->flush();
     m_puart->println("AT+CIPSTATUS");
     return recvFindAndFilter("OK", "\r\r\n", "\r\n\r\nOK", list);