tree: b72c1addf7e2c46fab856b1cc5cb9b60ca1df17e [path history] [tgz]
  1. main/
  2. third_party/
  3. .gitignore
  4. CMakeLists.txt
  5. partitions.csv
  6. README.md
  7. sdkconfig.defaults
  8. sdkconfig_m5stack.defaults
  9. sdkconfig_m5stack_rpc.defaults
  10. sdkconfig_rpc.defaults
examples/ota-requestor-app/esp32/README.md

CHIP ESP32 OTA Requestor Example

A prototype application that demonstrates OTA Requestor capabilities.

Please setup ESP-IDF and CHIP Environment and refer building and commissioning guides to get started.



Prerequisite

Before moving ahead, make sure you have OTA Provider is commissioned and running.

Query for an OTA Image

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 <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.

ESP32 OTA Requestor with Linux OTA Provider

./out/debug/chip-ota-provider-app -f hello-world.bin
  • Provision the Linux OTA Provider using chip-tool
./out/debug/chip-tool pairing onnetwork 12345 20202021