Skip to content

Feature/ota improve#3

Open
sedawwk wants to merge 2 commits into
masterfrom
feature/ota-improve
Open

Feature/ota improve#3
sedawwk wants to merge 2 commits into
masterfrom
feature/ota-improve

Conversation

@sedawwk

@sedawwk sedawwk commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

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 config

  • Add sw_ver field to iot_client_config_t and iot_on_boarding_config_t so apps can report their own firmware version during iot_client_init instead of relying on the fixed SDK default
  • Guard IOT_SDK_SW_VER / IOT_SDK_PV / IOT_SDK_BV macros with #ifndef for compile-time override
  • Update OTA demos to pass sw_ver through config, removing the need for a separate iot_ota_report_version() call

ee13936 — refactor(ota): remove unused sw_ver from upgrade-check API; enlarge partitions

  • Remove the redundant sw_ver parameter from iot_ota_check_upgrade() — the cloud already uses the version reported at init time, so sending it again per-check had no effect
  • Remove sw_ver field from ota_upgrade_request_t and the softVer JSON field from the upgrade.get ATOP request
  • Enlarge ESP32-S3 OTA partitions from 1500K to 4M each and switch flash size config from 8MB to 16MB to accommodate ~4MB firmware images

sedawwk added 2 commits July 8, 2026 14:17
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant