diff --git a/hueplusplus/HueLight.cpp b/hueplusplus/HueLight.cpp index 4d4e0be..829ba18 100755 --- a/hueplusplus/HueLight.cpp +++ b/hueplusplus/HueLight.cpp @@ -47,6 +47,11 @@ std::string HueLight::getName() return state["name"].asString(); } +ColorType HueLight::getCoorType() +{ + return colorType; +} + unsigned int HueLight::KelvinToMired(unsigned int kelvin) { return int(0.5f + (1000000 / kelvin)); diff --git a/hueplusplus/include/HueLight.h b/hueplusplus/include/HueLight.h index e3bbc4d..4d2ffe4 100755 --- a/hueplusplus/include/HueLight.h +++ b/hueplusplus/include/HueLight.h @@ -110,6 +110,10 @@ public: //! \return String containig the name of the light std::string getName(); + //! F\unction that returns the color type of the light. + //! \return ColorType containig the color type of the light + ColorType getCoorType(); + //! Function that converts Kelvin to Mired. //! \param kelvin Unsigned integer value in Kelvin //! \return Unsigned integer value in Mired