Skip to content

Commit

Permalink
Merge pull request #115 from mbarbey/master
Browse files Browse the repository at this point in the history
some small fixes in the README
  • Loading branch information
sqmk authored Oct 23, 2016
2 parents 6049929 + 4ad319b commit db67f88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ $client->sendCommand(

The bridge API allows you to create, update, and delete groups. Groups are useful for controlling multiple lights at the same time.

Creating a group is easy. All you need is a name, and a list of lights (ids, or ```\Phue\Light``` obejcts) that you want to associate with the group:
Creating a group is easy. All you need is a name, and a list of lights (ids, or ```\Phue\Light``` objects) that you want to associate with the group:

```php
// Create group with list of ids, and get group
Expand Down Expand Up @@ -285,7 +285,7 @@ $groups = $client->sendCommand(
new \Phue\Command\GetGroups
);

foreach ($client->getGroups() as $groupId => $group) {
foreach ($groups as $groupId => $group) {
echo $group->getId(), ' - ',
$group->getName(), "\n";
}
Expand Down Expand Up @@ -395,7 +395,7 @@ $group->delete();

// Send command
$client->sendCommand(
new \Phue\Command\DeleteGroup(2)
new \Phue\Command\DeleteGroup(1)
);
```

Expand Down

0 comments on commit db67f88

Please sign in to comment.