I'm developping a Firmware for a device based on the ESP8266 supporting the FOTA.Until now, I was handling the FOTA through the Espressif Cloud Server but I would like to move to my Own Custom Server.

I've tried to simply replace the HTTP GET I'm doing on the Espressif Cloud Server by a HTTP GET on my Own Server, but it doesn't work.I've also tried to Get the Size of the Firmware first to erase the flash sector (which I was doing directly when I was doing the GET and reading the Header with the Espressif Cloud Server) but it's doesn't work either.

So my question is about the Custom Server; is there anything specific to do there to allow the ESP8266 to download the Binary file ?In the FOTA Guide, it is said: "The custom server must support the downloading function". Is there anything special to handle at this point ?

Yes the Server is a HTTP Server.And yes if I open the URL directly in my browser, I can download the rom.bin on my computer.

So I'm not sure where the problem comes from:- If I try to download the file on my Browser or with a CURL command from the Custom Server, it works.- If I try to download the file on the ESP8266 from the Espressif Cloud Server, it works.But if I try to download the file on the ESP8266 from the Custom Server it doesn't work anymore.

Isn't anything special to do on the Server to make it "downloadable" from the ESP8266 ?

A little update on this issue:- With my custom Server, I'm able to download a small file; but still not able to download the binary file I need for the OTA (285 KB),- My custom Server is based in Europe and my Device is based in China.

Is it possible that the Connection is closed by the Server before I am able to download the entire file ?Then, how the Server should be configured regarding timing considerations ?

Would it be possible to have Support Contact from Espressif Server ? On the server website: http://iot.espressif.cn/#/api-en/#api-more-contact ; the Contact information is missing...

Documentation

About Us

Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.