Esp8266 work as a server to send multiple packet

riddickhou
Posts: 1
Joined: Tue Jul 19, 2016 2:37 pm

Esp8266 work as a server to send multiple packet

Postby riddickhou » Tue Jul 19, 2016 2:42 pm

Hi guys,

As the esp8266's SEND command can only send 2048 bytes each time.
When receive a http request, how can I send a picture bigger than 2048 bytes?
I try send it via 2 SEND commands, but failed.

pratik

Re: Esp8266 work as a server to send multiple packet

Postby pratik » Thu Jul 21, 2016 12:39 pm

Hello,

Which send command are you using?
Did you try AT+CIPSENDBUF command to send multiple blocks one after the other?

Ping
Posts: 1
Joined: Wed Sep 13, 2017 6:42 pm

Re: Esp8266 work as a server to send multiple packet

Postby Ping » Wed Sep 13, 2017 7:01 pm

I need to know this urgently too!

Suppose I can break the data into multiple packet of 2048 or less bytes, I send the first one: AT+CIPSEND=chn id, 2048, check OK and then 2048 bytes data and wait for SEND OK, and then repeat the process until all packet is gone and then send (AT+CIPCLOSE) to close the channel?

How about 20ms interval in between, it can be reasily over 20ms if I have to wait for the response.

thanks for any responses.

Ping

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: Esp8266 work as a server to send multiple packet

Postby Her Mary » Thu Sep 14, 2017 10:04 am

Hi Ping, I think that you can try to use command AT+CIPSENDBUF instead. The AT+CIPSENDBUF need not to wait the SEND OK.

Who is online

Users browsing this forum: No registered users and 322 guests