Exemple #1
0
        public async static void TurnLampToColor(LampColor color)
        {
            string    url  = LIGHTS_BASE + LIGHTS_GROUP_API;
            JsonValue json = Codec.EncodeHueChange(color);

            WazombiNetworkingResponse response = await WazombiNetworking.Put(url, json);
        }
Exemple #2
0
        async static Task <WazombiNetworkingResponse> TurnLights(bool _on)
        {
            string    url  = LIGHTS_BASE + LIGHTS_GROUP_API;
            JsonValue json = Codec.TurnLights(_on);

            WazombiNetworkingResponse response = await WazombiNetworking.Put(url, json);

            return(response);
        }