I'm trying to communicate with some LIFX bulbs over the LAN.
They use their own protocol and instead of re-inventing the wheel, I decided to take advantage of LIFX.Lib. It seems like the most complete option.
The problem is, it's a PCL library and I'm having issues referencing the appropriate types to invoke methods.
The examples rely on a DatagramSocket which seems to be part of the Windows.Networking.Sockets namespace. As far as I can tell, it's a "Universal App"-only part of the framework. I can't find any way to reference it from my console application. The few documents I've found online just claim that it doesn't need a specific reference and is part of the core framework.
I tried starting a universal class library instead, but then was unable to load the nuget package (no supported targets)
I was under the impression that PCLs could only include references to libraries available on all supported platforms, so I'm a little confused as to why this isn't working.
Have I misunderstood how PCLs work, or is there an obvious way around this that I'm missing? Failing that, is anyone aware of another library that has similar capabilities?
Edit: Apologies, I should probably mention:
.Net 4.6.1 / C# / VS2015 Update 3 / Win 10