bportaluri / WiFiEsp

Arduino WiFi library for ESP8266 modules
GNU General Public License v3.0
550 stars 210 forks source link

Can't receive data from esp8266 #197

Open marcelwinter04 opened 4 years ago

marcelwinter04 commented 4 years ago

Hello,

I have an ATMEGA1024P and an ESP8266, i have a function that sends a tcp string to an server and the server responds with some data. The problem now is that the esp receives this data (i can see it with the debug mode) but there is a problem transfering it to the atmega. The atmega receveivs the first few characters of my string and than after arround 20 chars i always get "ERROR\n\r". When i print the Serial1.available i´m always getting the right amount of characters, but as mentioned always filled with "ERROR\n\r".

The funny thing is that everything is working with an old compiled version (compile date is around November-Dezember 2019).

Baudrate of serial1 is 115200, but as already said, everything worked fine.

JAndrassy commented 4 years ago

try 9600 baud

marcelwinter04 commented 4 years ago

Hi,

9600 baud works around 8/10 times. I´ve tried changing to 38400, but have not thought about setting it to 9600, thanks for that.

But why is my older compiled version working with 115k? We have around 100 devices that are working fine with this setting.

8/10 is better than 0/10 but still not perfect, do you have another hint which could improve the serial connection?

JAndrassy commented 4 years ago

https://github.com/jandrassy/WiFiEspAT#Why-a-new-wifiesp-library

bosen365 commented 4 years ago

I have the same problem