-
- add getPictureOfLight and getPictureOfModel to get a picture name of a light or a model id
-
- Avoids UB
-
- On errors connection reset or timed out, waits and retries once
-
- 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