Page 1 of 1

Sending big files using AT commands

Posted: Fri Jan 27, 2017 7:20 pm
by yellowbit
Hi guys!
I need to send relatively big files (50-100kB) using AT+CIPSEND command. Unfortunately, ESP8266 can take only 2kB at once. Is there a way to send such big amount of data? Will a serie of CIPSENDs work? The data is a web application written in HTML and JavaScript.

Re: Sending big files using AT commands

Posted: Mon Feb 06, 2017 11:28 am
by pratik
A series of CIPSEND commands should work fine, as long as the connection does not time out between two CIPSEND commands. Put the connection on keep-alive though, in the initial HTTP header, which should work with virtually all transfers.

The proper way to do this sort of large transfer is to use the AT+CIPSENDBUF command, where you can keep sending stuff into the buffer and ESP8266 will keep transmitting. You can check back on buffer status using command AT+CIPBUFSTATUS.
NOTE: These may not be used for SSL connections