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.