Ejemplo n.º 1
0
        internal void SetLightColor(LightState lstate, Color color)
        {
            //change the value first
            lstate.Color = color;

            MakeLightRequest("/api/" + m_strUser + "/lights/" + (lstate.Index) + "/state", "PUT", lstate.ToJSON());
        }
Ejemplo n.º 2
0
        internal void SetLightColor(LightState lstate, Color color)
        {
            //change the value first
            lstate.Color = color;

            MakeLightRequest("/api/" + m_strUser + "/lights/" + (lstate.Index) + "/state", "PUT", lstate.ToJSON());
        }
Ejemplo n.º 3
0
        internal void SetLightBrightness(LightState lstate, byte bValue)
        {

            //change the value first
            lstate.Brightness = bValue;

            MakeLightRequest("/api/" + m_strUser + "/lights/" + (lstate.Index) + "/state", "PUT", lstate.ToJSON());
        }
Ejemplo n.º 4
0
        internal void SetLightBrightness(LightState lstate, byte bValue)
        {
            //change the value first
            lstate.Brightness = bValue;

            MakeLightRequest("/api/" + m_strUser + "/lights/" + (lstate.Index) + "/state", "PUT", lstate.ToJSON());
        }