Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By chaisme
#49470
Samighi11 wrote:
eduperez wrote:Can an Arduino-based ESP device auto-update itself over-the-air? My ideal scenario would be as follows:

* A ESP device connects to a server (HTTP, TFTP, ...?), and checks for a new version of the firmware.
* If a new version is found, the ESP device downloads the new firmware, installs it, and reboots.

Can this be done? Is there any sample code for the download + update process available (I can figure out the rest myself)? The binary file containing the new firmware, how must be created (using the Arduino IDE, if possible)?

Many thanks!


I would love to get this to work. First, we must get OTA to work itself. The trick is simple. Once you have OTA done, and you have a Bin file for the new version, it has to be hosted on a web server you own. Have the web server call back the device and execute CURL -F=binfile (I think).

if you can get OTA to work (I have not been able to), I can demonstrate the second half. At least we can try.


@Samighi11
Hi, I have managed to get OTA running ( Basic OTA example of esp8266 rtos). How can I enable pull instead of it's usual, push update mechanism?
I have several nodes(each with esp8266) which need to be updated from a esp8266 server.