public void SetColor(LifxColor color, UInt32 fadeTime) { LifxSetLightStateCommand command = new LifxSetLightStateCommand(color.Hue, color.Saturation, color.Lumnosity, color.Kelvin, fadeTime); LifxCommunicator.Instance.SendCommand(command, this); }
public async Task SetColorCommand(LifxColour colour, UInt32 fadeTime) { LifxSetLightStateCommand command = new LifxSetLightStateCommand(colour.Hue, colour.Saturation, colour.Luminosity, colour.Kelvin, fadeTime); await LifxCommunicator.Instance.SendCommand(command, this); }