Skip to content

Commit

Permalink
Update README file with example of setPowerStatus().
Browse files Browse the repository at this point in the history
  • Loading branch information
samaphp committed Nov 9, 2019
1 parent 47d0844 commit b964e4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ $light_ip = '192.168.1.x';
$Light = new Light($light_ip);
$brightness = 40;
$Light->setColorByName('white_warm', $brightness);

// Set light power on.
$Light->setPowerStatus('on');

// Set light power off.
$Light->setPowerStatus('off');
```

0 comments on commit b964e4d

Please sign in to comment.