From 03cf9200c6ab5e68c9fbe9418100b919830c39ab Mon Sep 17 00:00:00 2001 From: Nodeduino Date: Sun, 19 Nov 2017 22:26:17 +0100 Subject: [PATCH] Describe hwo to use new HttpHandlers --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 510be5c..04b45af 100755 --- a/README.md +++ b/README.md @@ -15,13 +15,14 @@ A simple and easy to use library for Philips Hue Lights ## How to use ### Searching for Bridges -To start searching for a Hue Bridge you will need to choose an IHttpHandler and create one. For now there is only one, the "HttpHandler". +To start searching for a Hue Bridge you will need to choose an IHttpHandler and create one. The options are a "winHttpHandler" (for windows) or a "linHttpHandler" (for linux). Then create a HueFinder object with the handler. The handler is needed, because it tells the finder which functions to use to communicate with a bridge or your local network. After that you can call FindBridges(), which will return a vector containing the ip and mac address of all found Bridges. If no Bridges were found the vector is empty, so make sure that in that case you provide an ip and mac address. ```C++ -handler = std::make_shared(); +// For windows use std::make_shared(); +handler = std::make_shared(); HueFinder finder(handler); std::vector bridges = finder.FindBridges(); if (bridges.empty()) -- libgit2 0.21.4