A prototype application that demonstrates OTA Requestor capabilities.
Before moving ahead, make sure you have OTA Provider is commissioned and running.
idf.py build
works!idf.py -p <OTARequestorSerialPort> flash monitor
./out/debug/chip-tool pairing ble-wifi 12346 <ssid> <passphrase> 20202021 3840
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-ota-provider 12345 0 0 12346 0
Once transfer is complete OTA Requestor should take permission from the OTA Provider for applying the OTA image. Use the following command from OTA requestor prompt
esp32> ApplyUpdateRequest
Then reboot the device manually to boot from upgraded OTA image.
./out/debug/chip-ota-provider-app -f hello-world.bin
./out/debug/chip-tool pairing onnetwork 12345 20202021