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 ?
I've tested the Custom Server with Curl command and when I'm doing:
It works exactly as when I'm doing:
curl -H "Authorization: token HERE_IS_THE_MASTER_DEVICE_KEY" 'https://iot.espressif.cn/v1/device/rom/?action=download_rom&version=v1.0&filename=rom.bin'
Anything I could miss on this part ?