-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add example of OTA update using http client #559
Conversation
Thanks for the effort. A little more documentation can always help! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the example looks quite good already! I have two suggestions - one to more heavily document the bootloader-based rollback mechanism and the other - to demo EspFirmweareInfoLoad
whereas the second thing I believe is important.
By browsing the ESP-IDF documentation, it appears the even have a native function that is handling the update process over HTTP automatically. You just provide an URI and it does all the process for you. It has been not been exposed on purpose ? If not, I would be happy to make a PR for it :-) |
Sure, but this function is binding the In other words, the API you want to expose is too opinionated. I don't mind you working on exposing it, but I don't think the existing |
Yes I totally agree ! It's more a util function that is ready to use for those how don't want manually implement it :-) |
I need some help for using |
What are you trying to do? The |
I must misunderstand what |
It is defining the firmware version. |
Hooo that's makes sense ! That's why the version was not correct in the running slot when I checked ! Thank you for you help on all of this ^^' |
BTW, when i add |
Yes, this is a long standing issue we have to fix at some point - nothing to do with |
Ok, I think I've resolved all your comments ? BTW, I'm not sure why the |
Sorry for the delay, could not get to it today. Will take a look tmr. |
No problem, there is no rush :-) It's just documentation ! |
Thanks again! |
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo fmt
command to ensure that all changed code is formatted correctly.cargo clippy
command to ensure that all changed code passes latest Clippy nightly lints.CHANGELOG.md
in the proper section.Pull Request Details 📖
Description
The documentation around OTA is very limited, and you have to make a lot of research on your own.
This PR introduces the example I would have been happy to find when implementing OTA updates on my project :-)
Testing
I've copy pasted the code from my working project. Not sure if there are unit tests for examples in this repo ?
Comments
I haven't added a changelog entry, not sure the addition of an example is actually a change :-P