-
- Also added tests to verify it
-
- Username and id were initialized from themselves
-
- Used to enforce a timeout between api requests, closes #15
-
- Rename IHttpHandler to BaseHttpHandler in debug messages - Add more informative debug print when the body of a response could not be found
-
- Hue Color Lights do not support ct mode so the support for it has been removed
-
- add getProductname to get the product name of a light
-
- Now the library can just be included with add_subdirectory, no need to configure include path
-
- wrong function was used to request the username
-
transition was misspelled
-
- improved by also printing errno as string
-
Test also works on windows now.
-
- add new class BaseHttpHandler - rename lin- and winHttpHandler to Lin- and WinHttpHandler - print error messages to std::cerr
-
This way deleted lights will not be returned
-
- add tests for ExtendedColorHueStrategy - add tests for ExtendedColorTemperatureStrategy - add missing test for HueLight - add tests for IHttpHandler - add tests for SimpleBrightnessStrategy - add tests for SimpleColorHueStrategy - add tests for SimpleColorTemperatureStrategy
-
- make functions of HueLight virtual so they can be mocked
-
- problem was that a rgb color of (0,0,0) is not representable with CIE xy so this case now the light will be turned off
-
- error was that transitiontime was misspelled
-
- exported duplicate code to another function
-
- also remove uneeded std::cout
-
- removed duplicate code
-
- problem was that in Off-/On-NoRefresh true was not returned when light was off/on, but a transitiontime was set -- fix makes usage of these common functions more efficient
-
- in setColorXY problem was that hue bridge only returns 4 decimal places, but with setColorRGB or in general more than 4 decimal places are quite common -- fixed issue by truncating floats during comparison by converting to int