feat(hosted): Add OTA and version functionality to esp-hosted#11936
feat(hosted): Add OTA and version functionality to esp-hosted#11936
Conversation
👋 Hello me-no-dev, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Test Results 76 files 76 suites 16m 3s ⏱️ Results for commit 5b31f48. ♻️ This comment has been updated with latest results. |
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
Co-authored-by: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com>
This pull request adds firmware version management and update capabilities to the ESP-Hosted integration. The changes introduce functions for retrieving firmware versions, checking for updates, and managing over-the-air (OTA) updates of the co-processor. Additionally, the initialization process now checks for version mismatches and logs update information.
Firmware version management and update features:
hostedGetHostVersionandhostedGetSlaveVersionfunctions to retrieve the firmware version of the host and co-processor, respectively. [1] [2]hostedHasUpdateto compare host and slave firmware versions, log differences, and determine if an update is needed. [1] [2]hostedGetUpdateURLto generate a URL for downloading the appropriate firmware update. [1] [2]OTA update workflow:
hostedBeginUpdate,hostedWriteUpdate, andhostedEndUpdatefor starting, writing, and finalizing OTA updates to the co-processor. [1] [2]Initialization improvements:
hostedInitto connect to the slave device and automatically check for firmware updates during initialization, logging results as appropriate.Code cleanup: