-
Notifications
You must be signed in to change notification settings - Fork 155
Description
Hi,
updating several devices with a new firmware is time consuming.
Using current method (update 1 device at a time) takes around 30s minute for a device (go to update site, upload binary, wait for restart..) => takes 25 minutes for 50 devices (20 if I continue to the next device while firmware is uploading on the former device).
Suggestion: provide path to new firmware file via URL parameter, example:
a) String url = "https://drive.google.com/uc?export=download&id=1LDRlyZaZTF-bxHjBDEiL2obMxYHtf3YT"
b) http://192.168.1.100/update?param1=url
- when b) is called in browser, update is done automatically without user interaction
- additonally, ElegantOTA has a method that takes url as argument, immediately starting the update process, like ElegantOTA.Update(url);
When passing URL, this takes maybe 2 minutes since all the devices will download the firmware simultaneously, but thats still a huge time saver.
In my case, I send a JSON over MQTT to all known devices that enables Wifi, Server and ElegantOTA. I would add the URL as an extra parameter and all devices will update automatically from this URL without user input + reboot.
What do you think?