Commit 03cf9200c6ab5e68c9fbe9418100b919830c39ab
Committed by
Moritz Wirger
1 parent
9d85cfbf
Describe hwo to use new HttpHandlers
Showing
1 changed file
with
3 additions
and
2 deletions
README.md
| ... | ... | @@ -15,13 +15,14 @@ A simple and easy to use library for Philips Hue Lights |
| 15 | 15 | |
| 16 | 16 | ## How to use |
| 17 | 17 | ### <a name="searchingBridges"></a>Searching for Bridges |
| 18 | -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". | |
| 18 | +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). | |
| 19 | 19 | Then create a HueFinder object with the handler. |
| 20 | 20 | The handler is needed, because it tells the finder which functions to use to communicate with a bridge or your local network. |
| 21 | 21 | After that you can call FindBridges(), which will return a vector containing the ip and mac address of all found Bridges. |
| 22 | 22 | If no Bridges were found the vector is empty, so make sure that in that case you provide an ip and mac address. |
| 23 | 23 | ```C++ |
| 24 | -handler = std::make_shared<HttpHandler>(); | |
| 24 | +// For windows use std::make_shared<winHttpHandler>(); | |
| 25 | +handler = std::make_shared<linHttpHandler>(); | |
| 25 | 26 | HueFinder finder(handler); |
| 26 | 27 | std::vector<HueFinder::HueIdentification> bridges = finder.FindBridges(); |
| 27 | 28 | if (bridges.empty()) | ... | ... |