Feature/ota improve#3
Open
sedawwk wants to merge 2 commits into
Open
Conversation
Add sw_ver field to iot_client_config_t and iot_on_boarding_config_t so applications can report their own firmware version for OTA checks instead of the fixed SDK default. Guard IOT_SDK_SW_VER/PV/BV macros with #ifndef for compile-time override. Update OTA demos to pass sw_ver through config rather than calling iot_ota_report_version separately.
…SP32-S3 OTA partitions - Remove sw_ver field from ota_upgrade_request_t and the softVer JSON field from the upgrade.get request; the cloud uses the version already reported via iot_client_init/iot_ota_report_version. - Drop sw_ver parameter from iot_ota_check_upgrade() and update all callers (POSIX + ESP-IDF examples, unit tests). - Enlarge ESP32-S3 OTA partitions from 1500K to 4M each and switch flash size from 8MB to 16MB to accommodate ~4MB firmware images.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean up the OTA upgrade-check API and fix partition sizing for the ESP32-S3 OTA demo.
Changes
857ba5e— feat(ota): allow app-supplied sw_ver in client/on-boarding configsw_verfield toiot_client_config_tandiot_on_boarding_config_tso apps can report their own firmware version duringiot_client_initinstead of relying on the fixed SDK defaultIOT_SDK_SW_VER/IOT_SDK_PV/IOT_SDK_BVmacros with#ifndeffor compile-time overridesw_verthrough config, removing the need for a separateiot_ota_report_version()callee13936— refactor(ota): remove unused sw_ver from upgrade-check API; enlarge partitionssw_verparameter fromiot_ota_check_upgrade()— the cloud already uses the version reported at init time, so sending it again per-check had no effectsw_verfield fromota_upgrade_request_tand thesoftVerJSON field from theupgrade.getATOP request