-->
Page 1 of 1

Delay after AT+CIPSEND before closing the connection

PostPosted: Sun Nov 23, 2014 8:06 am
by Didier9
Related to my other post, I am building a small web server for configuration.
It is necessary for the ESP8266 to close the connection after sending the data, otherwise the browser will time out and complain.
I do that with AT+CIPCLOSE=0, but if I do it too soon after sending the data, the module complains ("busy inet"). I have not found a way to ask the module when it is done transmitting and ready to close the connection, for now I am just waiting. 500 mS seems to do it but I would prefer to have a way to either close the connection automatically after sending the data, or query the module to know when it's ready so that I do not have to wait any longer than necessary.

Re: Delay after AT+CIPSEND before closing the connection

PostPosted: Wed Dec 24, 2014 6:00 am
by phil31
hi

with the last firmware 0020...
after the data are send, you will receive "DATA SEND"

then you need to close the socket

regards