Skip to content

Instantly share code, notes, and snippets.

@andreas-nesheim
Last active July 19, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreas-nesheim/7711e518b2085d59111bd9482c312a35 to your computer and use it in GitHub Desktop.
Save andreas-nesheim/7711e518b2085d59111bd9482c312a35 to your computer and use it in GitHub Desktop.
private async void Button_Clicked(object sender, EventArgs e)
{
var bridgeIP = "XXX.XXX.XX.XX";
var appKey = "abcdefghijklmnopqrstuvwxyz1234567890";
ILocalHueClient client = new LocalHueClient(bridgeIP);
client.Initialize(appKey);
var command = new LightCommand { Brightness = 120 };
await client.SendCommandAsync(command);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment