aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-29 19:34:19 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-29 19:34:19 -0500
commit6faf8ecae6fd2dceadf2f3bbd15565f35c2c1a64 (patch)
tree77063fdec4dfe8b677d3a823a7c4432dc1228af7 /README.md
parentd115895133ffd0f287eb0de096a897faaa7756e2 (diff)
Changed example code to match new FindBridges function and fixed documentation.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 84ebc1c..5714396 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,8 @@ func main() {
// It is recommended that you save the username from bridge.CreateUser
// so you don't have to press the link button every time and re-auth.
// When CreateUser is called it will print the generated user token.
- bridge, _ := hue.FindBridge()
+ bridgesOnNetwork, _ := hue.FindBridges()
+ bridge := bridgesOnNetwork[0]
username, _ := bridge.CreateUser("someusernamehere")
bridge.Login(username)