Skip to content

Commit

Permalink
[ESP32] Update documentation of ota (#26441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadhavrohit924 authored and pull[bot] committed Oct 17, 2023
1 parent fd8d634 commit 1365104
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions docs/guides/esp32/ota.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <PROVIDER NODE ID> 0
./out/debug/chip-tool otasoftwareupdaterequestor read default-otaproviders <REQUESTOR NODE ID> 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": <PROVIDER_NODE_ID_1>, "endpoint": 0}, {"fabricIndex": 1, "providerNodeID": <PROVIDER_NODE_ID_2>, "endpoint": 0}]' <REQUESTOR_NODE_ID> 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
Expand Down

0 comments on commit 1365104

Please sign in to comment.