-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hello,
I have a little problem with the libartnet on a iPad,
Sometimes, the library cannot initialize the node but it's random, sometimes it's ok, sometimes it's not ok.
artnet_node artnetNode = artnet_new(ip_addr, 0);
if (!artnetNode) {
printf("Error: %s\n", artnet_strerror());
throw new SenderException(artnet_strerror());
}
artnet_set_long_name(artnetNode, "Art-Net AirDMX");
artnet_set_short_name(artnetNode, "AirDMX");
// set the upper 4 bits of the universe address
artnet_set_subnet_addr(artnetNode, subnet_addr);
// enable port 0
artnet_set_port_type(artnetNode, 0, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX);
// bind port 0 to universe 1
artnet_set_port_addr(artnetNode, 0, ARTNET_OUTPUT_PORT, port_addr);
artnet_dump_config(artnetNode);
//artnet_set_handler(artnetNode, ARTNET_RECV_HANDLER, artnetReceiver, NULL);
if (artnet_start(artnetNode) != 0) {
printf("Error: %s\n", artnet_strerror());
throw new SenderException(artnet_strerror());
}
Thanks
Metadata
Metadata
Assignees
Labels
No labels