bportaluri / WiFiEsp

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

function read of UDP returning -1 #192

Open moahrs opened 4 years ago

moahrs commented 4 years ago

Hello,

I am using you lib, and i founded a bug, i think.

When i receive data from UDP, the function parsePacket, is returning the total packet size, and is OK. but when i will read with function read, this function return -1. This dos not make sense. If i have packet, with size, why they not read as well? I used udp senders like "Packet Sender" and UDP sender make for me in visual studio c#, and the result is the same.

This worked a couple of hours, but now, not work in any way.

Have you any idea, what can i do?

Thanks a lot Moacir Jr.

JAndrassy commented 4 years ago

use 9600 baud for communication with AT firmware with this library

moahrs commented 4 years ago

I changed the baud rate, and looks like worked.. I will do more tests

Thanks a lot Moacir Jr.