Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't change address/universe #18

Open
ebkgne opened this issue Sep 16, 2021 · 0 comments
Open

can't change address/universe #18

ebkgne opened this issue Sep 16, 2021 · 0 comments

Comments

@ebkgne
Copy link

ebkgne commented Sep 16, 2021

Hi there, thanks for the lib !

I've tryed replacing homemade solution with libartnet in on one of my project but I'm struggling on something.

I simply try to send some DMX to a universes( subnet+address am I right ?),

after setting up eveything , only the subnet has effect, address doesn't,

as in wireshark I see universe 0 when subnet is 0 and 16 with subnet 1, but changing address doesnt change a thing ...

here is my code , I'm running on windows but I don't see how my config could be responsible .

in advance thanks ;)

` std::vector<uint8_t> data = {127,255};

artnet_node artnet = artnet_new("2.0.0.222", 1);

artnet_set_short_name(artnet, "Test");
artnet_set_long_name(artnet, "TEST");
artnet_set_node_type(artnet, ARTNET_SRV);

artnet_set_subnet_addr(artnet, 0);

artnet_set_port_type(artnet, 0, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX);
artnet_set_port_addr(artnet, 0, ARTNET_OUTPUT_PORT, 1);

artnet_dump_config(artnet);

if (artnet_start(artnet) != 0) std::cout << artnet_strerror() << std::endl;

artnet_send_dmx(artnet, 0, data.size(), &data[0]);

artnet_stop(artnet);
artnet_destroy(artnet);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant