Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Jul 9, 2021
1 parent 80782b9 commit b7ee706
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/all-clusters-app/esp32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,23 @@ commissioning and cluster control.

### Cluster control

- After successful commissioning, use the OnOff cluster command to control the
- After successful commissioning, use the OnOff cluster commands to control the
OnOff attribute. This allows you to toggle a parameter implemented by the
device to be On or Off.

`chip-device-ctrl > zcl OnOff Off 135246 1 0`
`chip-device-ctrl > zcl OnOff Off 135246 1 1`

- Use the LevelControl cluster commands to control the CurrentLevel attribute. This
allows you to control the brightness of the led.

`chip-device-ctrl > zcl LevelControl MoveToLevel 135246 1 1 level=10 transitionTime=0 optionMask=0 optionOverride=0`

- For ESP32C3-DevKitM, use the ColorContorl cluster commands to control the
CurrentHue and CurrentSaturation attribute. This allows you to control the color of
on-board LED.

`zcl ColorControl MoveToHue 135246 1 1 hue=100 direction=0 transitionTime=0 optionsMask=0 optionsOverride=0`
`zcl ColorControl MoveToSaturation 135245 1 1 saturation=200 transitionTime=0 optionsMask=0 optionsOverride=0`

### Flashing app using script

Expand Down

0 comments on commit b7ee706

Please sign in to comment.