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.
Dependencies: ArduinoAPI
Fork of WeeESP8266 by
Revision 17:60ab5d5686d3, committed 2015-02-07
- 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);
