Skip to content

Commit

Permalink
[ESP32] Set default apply update action to proceed (#25859)
Browse files Browse the repository at this point in the history
* [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 <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Jan 16, 2024
1 parent 34cf307 commit 1402802
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/ota-provider-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions examples/ota-requestor-app/esp32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 1402802

Please sign in to comment.