monkee52 / LIFXSharp

An implementation of the LIFX LAN protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIFX# (LIFX Sharp)

An implementation of the LIFX LAN protocol in C#

Please note: This library is mostly untested as I do not have access to all of the LIFX products available.

Usage

For an extended example, see the "Example" project

LifxNetwork lifx = new LifxNetwork();

lifx.DeviceDiscovered += async (object sender, LifxDeviceDiscoveredEventArgs e) => {
	Console.WriteLine($"Found device [Type: {e.Device.Name}] @ [EndPoint: {e.Device.EndPoint}]");

	await e.Device.PowerOn();
};

lifx.StartDiscovery();

About

An implementation of the LIFX LAN protocol

License:GNU Lesser General Public License v3.0


Languages

Language:C# 100.0%