-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Web Server OTA (https) #68
Comments
Could also implement uploading the firmware via a web form: |
@yknivag seems to have been working on this at Indeed it would be good to turn this type of functionality into an easy-to-consume library. Also see |
Any thoughts about using ElegantOTA ? It will provide a pleasant UI for uploading OTAs. |
Thanks for the pointer @ayushsharma82. I was not aware of ElegantOTA so far but it does look elegant indeed.
|
It works with default Webserver of ESP. But it should take about an hour to port it to AsyncWebServer. I will develop a Async Version Soon. Currently there is just one benefit, It shows progress of OTA via a progress bar on webpage and shows a good and clear status when OTA is done. ElegantOTA is certainly for beauty purposes only. 😄 |
Cool. Please let me know when it is available.
Definitely an advantage. Does updating work using the command line (e.g., wget/curl) too, like our current solution? |
Yes, In fact the webpage does the same but with a AJAX Request to a upload URL. |
@probonopd Just Released AsyncElegantOTA , It works on AsyncWebServer and has support for both esp8266 and esp32. |
@ayushsharma82 that's great news. Would you like to give it a try to integrate it into WirelessPrinting? |
@probonopd Created a Pull Request. Edit travis cli to copy AsyncElegantOTA repo for successful builds. #118 |
Apologies for the very late reply, but I think I now have this working. See https://github.com/yknivag/ESP_OTA_GitHub |
Wow this is useful. Would you like to send a pull request to this repository incorporating it @yknivag? |
Thank you for your appreciation and excitement. :-) I only just got it working yesterday after waiting 6 months for a bug fix to I think maybe a some more thorough testing is in order before I would be presumptuous enough to submit a PR with it to someone else's project. It's definitely a beta atm! Please do feel free to test it out though, but I would keep it in your dev branch until there is a release on the repo. |
@yknivag is it still working and being maintained? |
@probonopd It was still working last time I checked it. I haven't had cause to use it myself for a little while due to working on other things, but I see no reason why the library shouldn't still work. |
Currently it is cumbersome to update the firmware. It would be nice if one could update from the HTTP interface directly with the firmware being downloaded from a https link
We should get as the default firmware URL the latest GitHub Release, from https://api.github.com/repos/probonopd/WirelessPrinting/releases
[0]["assets"][0]["browser_download_url"]
but we should alsohave the possibility to load from custom URLs.ESPhttpUpdate.update(String(host),httpsPort,String(url),String(""),String(fingerprint));
The text was updated successfully, but these errors were encountered: