From 1365104913cebb804bf44e7cd058c0ea28948805 Mon Sep 17 00:00:00 2001 From: Rohit Jadhav <69809379+jadhavrohit924@users.noreply.github.com> Date: Wed, 10 May 2023 23:14:53 +0530 Subject: [PATCH] [ESP32] Update documentation of ota (#26441) --- docs/guides/esp32/ota.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/guides/esp32/ota.md b/docs/guides/esp32/ota.md index 0217514523efd0..ab079250250b40 100644 --- a/docs/guides/esp32/ota.md +++ b/docs/guides/esp32/ota.md @@ -35,11 +35,24 @@ control list. ### Using Console -After commissioning is successful, press Enter in requestor device console and -type below query. +After commissioning is successful, read the default-ota-providers list of +requestor using the command below. ``` ->matter ota query 1 0 +./out/debug/chip-tool otasoftwareupdaterequestor read default-otaproviders 0 +``` + +If the list does not have your provider, write into default-ota-providers list +of requestor using the command below. + +``` +./out/debug/chip-tool otasoftwareupdaterequestor write default-otaproviders '[{"fabricIndex": 1, "providerNodeID": , "endpoint": 0}, {"fabricIndex": 1, "providerNodeID": , "endpoint": 0}]' 0 +``` + +Press Enter in requestor device console and type below query. + +``` +>matter ota query ``` Once the transfer is complete, OTA requestor sends ApplyUpdateRequest command to