Skip to content

Commit

Permalink
Update example.php file to have an example for setPowerStatus().
Browse files Browse the repository at this point in the history
  • Loading branch information
samaphp committed Nov 9, 2019
1 parent dc0fc75 commit 47d0844
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
// Insert your light IP.
$light_ip = '192.168.1.169';
$Light = new Light($light_ip);
// $res = $Light->setPowerStatus('on');
// $res = $Light->setPowerStatus('off');
$Light->setColorByName('white_warm', 40);

// List of pre-defined colors by this class to use with setColorByName().
Expand Down

0 comments on commit 47d0844

Please sign in to comment.