Added light ids to device config.

Former-commit-id: 601616b0d7509b0e8ebb5226f00af5028fa905b5
This commit is contained in:
Tim Niggemann
2015-03-03 15:45:09 +01:00
parent acc0f61e60
commit ecea6e55ea
3 changed files with 21 additions and 6 deletions

View File

@@ -131,8 +131,10 @@ public:
///
/// @param transitiontime the time duration a light change takes in multiples of 100 ms (default: 400 ms).
///
/// @param lightIds light ids of the lights to control if not starting at one in ascending order.
///
LedDevicePhilipsHue(const std::string& output, const std::string& username = "newdeveloper", bool switchOffOnBlack =
false, int transitiontime = 1);
false, int transitiontime = 1, std::vector<unsigned int> lightIds = {});
///
/// Destructor of this device
@@ -171,6 +173,8 @@ private:
/// Transition time in multiples of 100 ms.
/// The default of the Hue lights will be 400 ms, but we want to have it snapier
int transitiontime;
/// Array of the light ids.
std::vector<unsigned int> lightIds;
///
/// Sends a HTTP GET request (blocking).