artnet4j icon indicating copy to clipboard operation
artnet4j copied to clipboard

Misundertandings Using the library

Open LIUKRAST opened this issue 1 year ago • 1 comments

Hello! Been a while since you are active in this project, but i was trying to use it and would really appreaciate your help.

Basically im trying to make a java program to simulate a light and render it, controlled by Dot2 (Or any other program you reccomend). What i dont get is how to use the whole library. I tried to make a basic setup, where i try to print all the bytes to at least see if anything changes, but i have no idea what im doing

        client = new ArtNetClient();
        client.start("0.0.0.0"); // IP Given by Dot2

        for(int i = 0; i < 100; i++) {
            byte[] data = client.readDmxData(0,0);
            System.err.println("Test: " + (data[1] & 0xFF));
            Thread.sleep(100);
        }
        client.stop();

It just prints me

dic 11, 2023 6:01:09 PM ch.bildspur.artnet.ArtNetServer start
INFORMAZIONI: Art-Net server started at: 0.0.0.0:6454

Not any of the bytes ever change even though im changing values on Dot2. Is there some kind of wiki to understand how this library works?

LIUKRAST avatar Dec 11 '23 17:12 LIUKRAST