예제 #1
0
		public async void SetLightValues(Lamp l)
		{
			if (l.on)
			{
				Debug.WriteLine(l.hue);
				var json = await nwf.SetLightInfo(l.id, $"{{\"bri\": {l.bri},\"hue\": {(l.hue)},\"sat\": {l.sat}}}");
				Debug.WriteLine(json);
			}

		}
예제 #2
0
		public async void SetLightState(Lamp l)
		{
			var json = await nwf.SetLightInfo(l.id, $"{{\"on\": {((l.on) ? "true" : "false")}}}");
			Debug.WriteLine(json);
		}
예제 #3
0
        public async void SetLightState(Lamp l)
        {
            var json = await nwf.SetLightInfo(l.id, $"{{\"on\": {((l.on) ? "true" : "false")}}}");

            Debug.WriteLine(json);
        }