Sending big files using AT commands

yellowbit
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
pratik
Posts: 319
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

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
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 2 guests