A prototype application that demonstrates OTA Requestor capabilities.
Please setup ESP-IDF and CHIP Environment and refer building and commissioning guides to get started.
Before moving ahead, make sure you have OTA Provider is commissioned and running.
After commissioning is successful, announce OTA provider's presence using chip-tool. On receiving this command OTA requestor will query for OTA image.
./out/debug/chip-tool otasoftwareupdaterequestor announce-otaprovider <PROVIDER NODE ID> 0 0 0 <REQUESTOR NODE ID> 0
Once the transfer is complete, OTA requestor sends ApplyUpdateRequest command to OTA provider for applying the image. Device will restart on successful application of OTA image.
./out/debug/chip-ota-provider-app -f hello-world.bin
./out/debug/chip-tool pairing onnetwork 12345 20202021
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.