Skip to content

Commit

Permalink
Add advanced use section.
Browse files Browse the repository at this point in the history
  • Loading branch information
samaphp committed Dec 13, 2019
1 parent 1cf5824 commit 5238ca7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ $Light->setPowerStatus('on');
// Set light power off.
$Light->setPowerStatus('off');
```
Advanced use:
```php
// Set a custom value for the connection timeout.
$Light->setTimeout(2);

// Custom timeout per method.
$Light->setTimeout(1)->setColorByName('white_cool', 10);
```

0 comments on commit 5238ca7

Please sign in to comment.