itead / ITEADLIB_Arduino_WeeESP8266

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

releaseTCP error #33

Closed marcfon closed 9 years ago

marcfon commented 9 years ago

When you call releaseTCP() and the module is still receiving content after a send() command the release command will fail. It took me a while to figure this out... my current workaround is to add a 10s delay after send() but that's not really a longterm solution.

The problem is that if you use a small receive buffer, say 128 bytes, it exits way before all the content is received.