Exemple #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);
			}

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

            Debug.WriteLine(json);
        }