-->
Page 1 of 1

ESPhttpUpdate class

PostPosted: Tue Mar 12, 2019 3:44 am
by Lakshan Fernando
Hi,
Does ESPhttpUpdate.update require the binary file to be in SPIFFS format?
Can the server directly serve the Arduino compiled filed?

Thanks
Lakshan

Re: ESPhttpUpdate class

PostPosted: Tue Mar 26, 2019 11:15 am
by DIRR70
Hello Lakshan Fernando,

there is a menu item called "export compiled binary" under "sketch" in the main menu. This creates a .bin file in the same directory where your .ino is and that is what I serve for the OTA and it is working well... ;)

Re: ESPhttpUpdate class

PostPosted: Fri Aug 02, 2019 8:23 am
by bdepauw
Hello All,
I have an additional question on ESPhttpUpdate class.
The site : http://arduino.esp8266.com/Arduino/vers ... dates.html
mentions :
"Simple updater downloads the file every time the function is called"
ESPhttpUpdate.update("192.168.0.2", 80, "/arduino.bin");

If this is true, will it load the .bin file really each time ? Or will it do a check first to see if it is a newer/changed file ( md5 check ?)
This would mean that you can't use this with sleep mode ( let's say 30s ), as it would each time load MB's and flash+reboot when waking up ...

I have a completely autonomous ESP without any human/manual interaction, so I can't call the function based on a interaction ( example button press )

Thanks for all answers.