It looks like you're new here. If you want to get involved, click one of these buttons!
I have added some very important extensions to library:
Allow Socket Reuse - This is necessary to run multiple ArtNet servers / clients on one system. Otherwise the artnet port can only be used by one application.
Network Interface Selection - It is possible to select the specific network interface to communicate with. This is necessary if you have a special network for your ArtNet devices, but would like to be connected to a second network (e.g. for monitoring).
Receiving ArtNet DMX Data - Without this modification, the library was not able to read ArtNet from another node. The library also supports a simple caching solution, to read the dmx data when you need it (not event driven).
Here is a simple example how to read data:
ArtNetClient artnet = new ArtNetClient(); // set interface address to listen to artnet.start("127.0.0.1"); byte data = artnet.readDmxData(0, 0); System.out.println("First Byte: " + data & 0xFF); artnet.start.stop();
You can download the library here (under releases): github.com/cansik/artnet4j
I am also waiting for the approval into the library manager.