From 140280200922845d167a99c466881604c9035e30 Mon Sep 17 00:00:00 2001 From: Rohit Jadhav <69809379+jadhavrohit924@users.noreply.github.com> Date: Sat, 1 Apr 2023 09:59:15 +0530 Subject: [PATCH] [ESP32] Set default apply update action to proceed (#25859) * [ESP32] Set default apply update action to proceed * Restyled by clang-format * Restyled by prettier-markdown * Updated readme * Restyled by prettier-markdown --------- Co-authored-by: Restyled.io --- examples/ota-provider-app/esp32/main/main.cpp | 1 + examples/ota-requestor-app/esp32/README.md | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/examples/ota-provider-app/esp32/main/main.cpp b/examples/ota-provider-app/esp32/main/main.cpp index d016149f5b436b..82f8d52914bd17 100644 --- a/examples/ota-provider-app/esp32/main/main.cpp +++ b/examples/ota-provider-app/esp32/main/main.cpp @@ -134,6 +134,7 @@ static void InitServer(intptr_t context) { otaProvider.SetQueryImageStatus(OTAQueryStatus::kUpdateAvailable); otaProvider.SetOTAFilePath(otaImagePath); + otaProvider.SetApplyUpdateAction(OTAApplyUpdateAction::kProceed); } fclose(otaImageFile); otaImageFile = NULL; diff --git a/examples/ota-requestor-app/esp32/README.md b/examples/ota-requestor-app/esp32/README.md index 4fb56712670429..734985783df06c 100644 --- a/examples/ota-requestor-app/esp32/README.md +++ b/examples/ota-requestor-app/esp32/README.md @@ -49,3 +49,9 @@ application of OTA image. ``` ./out/debug/chip-tool pairing onnetwork 12345 20202021 ``` + +### Note + +While trying out example ota-requestor-app bump the software version from +`CMakeList.txt` and not from `idf.py menuconfig`. And software version of the +image which is being ota should be greater than current software version.