itead / ITEADLIB_Arduino_WeeESP8266

An easy-to-use Arduino ESP8266 library besed on AT firmware.
MIT License
526 stars 285 forks source link

wifi.getVersion() and TCPServer example not working... #75

Open lenny1972 opened 7 years ago

lenny1972 commented 7 years ago

I'm facing with two different issues on this library:

In addition I've got not result when invoking the wifi.getVersion() function.

May someone out there help me?

Thanks in advanced

p.s.: I add no code because I reter to the library example sketches (the function wifi.getVersion() is on every example sketch)

stanely commented 7 years ago

My environment: Arduino UNO + ESP-01 boards.

jcvsilva commented 7 years ago

I had to change this part of the code in ESP8266.cpp :

bool ESP8266::eATGMR(String &version)
{
    rx_empty();
    m_puart->println("AT+GMR");
    //return recvFindAndFilter("OK", "\r\r\n", "\r\n\r\nOK", version); 
    return recvFindAndFilter("OK", "+GMR", "\r\nOK", version);
}

This is my ESP version: AT version:0.50.0.0 SDK version:1.4.0

marioaprea commented 4 years ago

I changed all the recFindAndFilter response of each function