Sending big files using AT commands

Posts: 1
Joined: Fri Jan 27, 2017 7:09 pm

Sending big files using AT commands

Postby yellowbit » Fri Jan 27, 2017 7:20 pm

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.

User avatar
Posts: 349
Joined: Wed Jun 29, 2016 7:17 pm
Location: India

Re: Sending big files using AT commands

Postby pratik » Mon Feb 06, 2017 11:28 am

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
Pratik Panda

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):

Who is online

Users browsing this forum: No registered users and 1 guest